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

Auto-generation bash script to perform completions for a given CLI #2

Closed
jdegoes opened this issue May 9, 2020 · 5 comments
Closed

Comments

@jdegoes
Copy link
Member

jdegoes commented May 9, 2020

Bash is a common shell for Linux / BSD operating systems. Bash has a feature whereby you can have the shell auto-complete options for a command-line argument, which can simplify usage of command-line applications.

See here for a tutorial and here for more extensive documentation.

Given a CLI, we should be able to nicely generate a bash script that when sourced, will add all appropriate completions using the complete process.

See CLIApp#completions.

@jdegoes
Copy link
Member Author

jdegoes commented Nov 21, 2020

More details here: #3

@ashprakasan
Copy link
Contributor

I'll take a stab at this.

@harveywi
Copy link
Contributor

I'd like to give this a go 😎 If anyone else is interested, feel free to join me.

@harveywi
Copy link
Contributor

Whew! #107

@harveywi
Copy link
Contributor

Here's a PR that implements the rest of the tab completion machinery for Bash: #119

@jdegoes jdegoes closed this as completed May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants