Skip to content

Commit

Permalink
Rename command to generate RustDocs in CodegenTestCommon.kt (#2094)
Browse files Browse the repository at this point in the history
The command is `cargo doc`, not `cargo docs`.
  • Loading branch information
david-perez committed Dec 15, 2022
1 parent 6dad2fb commit 66fd6c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildSrc/src/main/kotlin/CodegenTestCommon.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private fun generateSmithyBuild(projectDir: String, pluginName: String, tests: L
enum class Cargo(val toString: String) {
CHECK("cargoCheck"),
TEST("cargoTest"),
DOCS("cargoDocs"),
DOCS("cargoDoc"),
CLIPPY("cargoClippy");
}

Expand Down Expand Up @@ -102,9 +102,9 @@ fun cargoCommands(properties: PropertyRetriever): List<Cargo> {
when (it) {
"check" -> Cargo.CHECK
"test" -> Cargo.TEST
"docs" -> Cargo.DOCS
"doc" -> Cargo.DOCS
"clippy" -> Cargo.CLIPPY
else -> throw IllegalArgumentException("Unexpected Cargo command `$it` (valid commands are `check`, `test`, `docs`, `clippy`)")
else -> throw IllegalArgumentException("Unexpected Cargo command `$it` (valid commands are `check`, `test`, `doc`, `clippy`)")
}
}

Expand Down

0 comments on commit 66fd6c9

Please sign in to comment.