Unverified Commit 66fd6c9f authored by david-perez's avatar david-perez Committed by GitHub
Browse files

Rename command to generate RustDocs in `CodegenTestCommon.kt` (#2094)

The command is `cargo doc`, not `cargo docs`.
parent 6dad2fbf
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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");
}

@@ -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`)")
        }
    }