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

step completion sub-command #622

Closed
ooraini opened this issue Feb 1, 2022 · 1 comment · Fixed by #628
Closed

step completion sub-command #622

ooraini opened this issue Feb 1, 2022 · 1 comment · Fixed by #628

Comments

@ooraini
Copy link
Contributor

ooraini commented Feb 1, 2022

What would you like to be added

It's common to see the sub-command completion followed by the shell's name to generate the completion script to standard out. The user can redirect the output to the appropriate file for their shell.

The output of step completion bash would be the same as:
https://github.com/smallstep/cli/blob/master/autocomplete/bash_autocomplete
But without the shebang.

Why this is needed

I think it's better UX for the user. When I try to install a completion for any tool, the first place I would look for is the completion sub-command.

And for people who like to automate the installations of their favorite CLIs, it's very convenient in scripts.

@ooraini ooraini added enhancement needs triage Waiting for discussion / prioritization by team labels Feb 1, 2022
@dopey
Copy link
Contributor

dopey commented Feb 2, 2022

Hey @ooraini thanks for opening the issue! Sounds like a great idea and we would definitely appreciate such a contribution.

If anyone from the community is looking for guidance on how to get started, let us know and we'll point you in the right direction.

Cheers 🍻

@dopey dopey removed the needs triage Waiting for discussion / prioritization by team label Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants