Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subcommands to generate shell completions and manual pages #4683

Merged
merged 2 commits into from
May 14, 2024

Conversation

xdoardo
Copy link
Contributor

@xdoardo xdoardo commented May 14, 2024

This PR adds two new subcommands: gen-completions and gen-man. The former takes an argument that specifies the shell to generate completions for, while the latter takes an optional argument to specify the directory to generate the man pages to. Resolves #4678 and #4677.

image image

As part of this effort, it also changes some doc comments and removes an unused flag in the push subcommand.

@xdoardo xdoardo requested a review from syrusakbary as a code owner May 14, 2024 11:55
@xdoardo xdoardo requested a review from theduke May 14, 2024 12:04
lib/cli/src/commands/gen_manpage.rs Outdated Show resolved Hide resolved
lib/cli/src/commands/mod.rs Show resolved Hide resolved
@xdoardo xdoardo enabled auto-merge May 14, 2024 14:09
@xdoardo xdoardo merged commit 0484a2d into main May 14, 2024
61 checks passed
@xdoardo xdoardo deleted the gen-completions-manpages branch May 14, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add man page generation to the CLI
3 participants