From 44789e34af41b44ad73167e4e732b2f59fc97234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Misty=20De=20M=C3=A9o?= Date: Mon, 18 Sep 2023 10:51:55 -0700 Subject: [PATCH] chore(cli): hide generate-ci command Fixes #433. --- cargo-dist/src/cli.rs | 1 + cargo-dist/tests/snapshots/long-help.snap | 13 +++++------ cargo-dist/tests/snapshots/markdown-help.snap | 22 ------------------- cargo-dist/tests/snapshots/short-help.snap | 13 +++++------ 4 files changed, 13 insertions(+), 36 deletions(-) diff --git a/cargo-dist/src/cli.rs b/cargo-dist/src/cli.rs index 02bb7ef27..64aa2b1dc 100644 --- a/cargo-dist/src/cli.rs +++ b/cargo-dist/src/cli.rs @@ -126,6 +126,7 @@ pub enum Commands { Generate(GenerateArgs), /// Generate CI scripts for orchestrating cargo-dist (deprecated in favour of generate) #[clap(disable_version_flag = true)] + #[clap(hide = true)] GenerateCi(GenerateCiArgs), /// Generate the final build manifest without running any builds. /// diff --git a/cargo-dist/tests/snapshots/long-help.snap b/cargo-dist/tests/snapshots/long-help.snap index 444e4bcdb..cca421d25 100644 --- a/cargo-dist/tests/snapshots/long-help.snap +++ b/cargo-dist/tests/snapshots/long-help.snap @@ -11,13 +11,12 @@ Usage: cargo dist [OPTIONS] cargo dist Commands: - build Build artifacts - init Setup or update cargo-dist - generate Generate one or more pieces of configuration - generate-ci Generate CI scripts for orchestrating cargo-dist (deprecated in favour of generate) - manifest Generate the final build manifest without running any builds - plan Get a plan of what to build (and check project status) - help Print this message or the help of the given subcommand(s) + build Build artifacts + init Setup or update cargo-dist + generate Generate one or more pieces of configuration + manifest Generate the final build manifest without running any builds + plan Get a plan of what to build (and check project status) + help Print this message or the help of the given subcommand(s) Options: -h, --help diff --git a/cargo-dist/tests/snapshots/markdown-help.snap b/cargo-dist/tests/snapshots/markdown-help.snap index b4137d02c..d48bb2ab3 100644 --- a/cargo-dist/tests/snapshots/markdown-help.snap +++ b/cargo-dist/tests/snapshots/markdown-help.snap @@ -22,7 +22,6 @@ cargo dist * [build](#cargo-dist-build): Build artifacts * [init](#cargo-dist-init): Setup or update cargo-dist * [generate](#cargo-dist-generate): Generate one or more pieces of configuration -* [generate-ci](#cargo-dist-generate-ci): Generate CI scripts for orchestrating cargo-dist (deprecated in favour of generate) * [manifest](#cargo-dist-manifest): Generate the final build manifest without running any builds * [plan](#cargo-dist-plan): Get a plan of what to build (and check project status) * [help](#cargo-dist-help): Print this message or the help of the given subcommand(s) @@ -189,26 +188,6 @@ Print help (see a summary with '-h') ### GLOBAL OPTIONS This subcommand accepts all the [global options](#global-options) -


-## cargo dist generate-ci -Generate CI scripts for orchestrating cargo-dist (deprecated in favour of generate) - -### Usage - -```text -cargo dist generate-ci [OPTIONS] -``` - -### Options -#### `--check` -Check if the generated output differs from on-disk config without writing it - -#### `-h, --help` -Print help (see a summary with '-h') - -### GLOBAL OPTIONS -This subcommand accepts all the [global options](#global-options) -


## cargo dist manifest Generate the final build manifest without running any builds. @@ -288,7 +267,6 @@ cargo dist help [COMMAND] * [build](#cargo-dist-build): Build artifacts * [init](#cargo-dist-init): Setup or update cargo-dist * [generate](#cargo-dist-generate): Generate one or more pieces of configuration -* [generate-ci](#cargo-dist-generate-ci): Generate CI scripts for orchestrating cargo-dist (deprecated in favour of generate) * [manifest](#cargo-dist-manifest): Generate the final build manifest without running any builds * [plan](#cargo-dist-plan): Get a plan of what to build (and check project status) * [help](#cargo-dist-help): Print this message or the help of the given subcommand(s) diff --git a/cargo-dist/tests/snapshots/short-help.snap b/cargo-dist/tests/snapshots/short-help.snap index 2525f4975..1707e02fd 100644 --- a/cargo-dist/tests/snapshots/short-help.snap +++ b/cargo-dist/tests/snapshots/short-help.snap @@ -9,13 +9,12 @@ Usage: cargo dist [OPTIONS] cargo dist Commands: - build Build artifacts - init Setup or update cargo-dist - generate Generate one or more pieces of configuration - generate-ci Generate CI scripts for orchestrating cargo-dist (deprecated in favour of generate) - manifest Generate the final build manifest without running any builds - plan Get a plan of what to build (and check project status) - help Print this message or the help of the given subcommand(s) + build Build artifacts + init Setup or update cargo-dist + generate Generate one or more pieces of configuration + manifest Generate the final build manifest without running any builds + plan Get a plan of what to build (and check project status) + help Print this message or the help of the given subcommand(s) Options: -h, --help Print help (see more with '--help')