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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable bash completion #53

Merged
merged 1 commit into from Jun 29, 2017
Merged

Conversation

jmccann
Copy link
Contributor

@jmccann jmccann commented Jun 29, 2017

Enable Drone CLI to generate bash completion output. Combined with user copying bash completion script following https://github.com/urfave/cli#distribution this enabled autocomplete with Drone CLI!

Example

$ ./drone 
build     exec      help      registry  secret    
deploy    h         info      repo      user
$ ./drone build 
approve  h        info     list     queue    stop     
decline  help     last     logs     start   

And yes, it does autocomplete drone b -> drone build when tabbed and such. Bit harder to show example of that 馃槢

Fixes #40

https://github.com/urfave/cli#bash-completion

@bradrydzewski bradrydzewski merged commit e36db14 into harness:master Jun 29, 2017
@jmccann jmccann deleted the autocomplete branch June 29, 2017 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants