Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-k-cameron committed Jul 6, 2023
1 parent cc33514 commit 8d78bd4
Showing 1 changed file with 36 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,49 @@ private object Commands {
)
}

// --all-features
// enable all features
// e.g.
// ```kotlin
// cargoTest(true)
// // cargo test --all-features
// cargoTest(false)
// // cargo test
// ```
fun cargoTest(enableAllFeatures: Boolean): String {
return func("cargo test", allFeature, enableAllFeatures)
}

// enable all features
// e.g.
// ```kotlin
// cargoCheck(true)
// // cargo test --all-features
// cargoCheck(false)
// // cargo test
// ```
fun cargoCheck(enableAllFeatures: Boolean): String {
return func("cargo check", allFeature, enableAllFeatures)
}

// enable features specified in the array
// e.g.
// ```kotlin
// cargoTest(["serde-serialize", "serde-deserialize"])
// // cargo test --features serde-serialize serde-deserialize
// ```
fun cargoTest(featuresToEnable?: Array<String>): String {
return func("cargo test", allFeature, enableAllFeatures)
}

// enable features specified in the array
// e.g.
// ```kotlin
// cargoCheck(["serde-serialize", "serde-deserialize"])
// // cargo check --features serde-serialize serde-deserialize
// ```
fun cargoCheck(featuresToEnable?: Array<String>): String {
return func("cargo check", allFeature, enableAllFeatures)
}
}

val TestModuleDocProvider = object : ModuleDocProvider {
Expand Down

0 comments on commit 8d78bd4

Please sign in to comment.