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

feat: shell completions #687

Merged
merged 3 commits into from
Jul 25, 2023
Merged

feat: shell completions #687

merged 3 commits into from
Jul 25, 2023

Conversation

cfcosta
Copy link
Contributor

@cfcosta cfcosta commented Jul 25, 2023

Adds a subcommand to generate shell completions. Should make the aiken cli tool more ergonomic.

@cfcosta cfcosta requested a review from rvcas July 25, 2023 15:16
@@ -22,7 +22,7 @@ pub struct Args {
#[clap(long)]
pub version: String,

#[clap(hide = true)]
#[clap(hide = true, long)]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually a bug fix, because the argument is optional but positional at the same time. When we generate the completions, we trigger all possible options and it catched this error.

@rvcas rvcas merged commit 49cc76c into main Jul 25, 2023
2 checks passed
@rvcas rvcas deleted the cfcosta/completions branch July 25, 2023 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚀 Released
Development

Successfully merging this pull request may close these issues.

2 participants