Skip to content

Commit f49945c

Browse files
authored
Fix CLI reference generation (#3403)
# Description of Changes Add back the instructions for regenerating CLI docs, which were removed in #3343. I also made a script for it. This also fixes the CI checking this file, which was silently broken in the same PR. I have **not** verified that this works in Git Bash in Windows. # API and ABI breaking changes None # Expected complexity level and risk 1 # Testing - [x] CI passes - [x] CI fails if I change the CLI reference - [x] CLI reference looks visually reasonable on a local `pnpm dev` --------- Signed-off-by: Zeke Foppa <196249+bfops@users.noreply.github.com> Co-authored-by: Zeke Foppa <bfops@users.noreply.github.com>
1 parent 4ebb31c commit f49945c

6 files changed

Lines changed: 412 additions & 246 deletions

File tree

crates/cli/src/subcommands/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ pub fn cli() -> clap::Command {
123123
.long("project-path")
124124
.value_name("PATH")
125125
.value_parser(clap::value_parser!(PathBuf))
126-
.help("Directory where the project will be created (defaults to ./<PROJECT_NAME>)"),
126+
.help("Directory where the project will be created (defaults to `./<PROJECT_NAME>`)"),
127127
)
128128
.arg(Arg::new("project-name").value_name("PROJECT_NAME").help("Project name"))
129129
.arg(

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ git push -u origin a-branch-name-that-describes-my-change
3838
6. Go to our GitHub and open a PR that references your branch in your fork on
3939
your GitHub
4040

41-
### Docusaurus Documentation
41+
### CLI Reference Section
42+
To regenerate the CLI reference section, run `pnpm generate-cli-docs`.
4243

44+
### Docusaurus Documentation
4345
For more information on how to use Docusaurus, see the
4446
[Docusaurus documentation](https://docusaurus.io/docs).
4547

0 commit comments

Comments
 (0)