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

Bash complete #45

Open
1 of 4 tasks
at15 opened this issue Aug 12, 2016 · 3 comments
Open
1 of 4 tasks

Bash complete #45

at15 opened this issue Aug 12, 2016 · 3 comments
Assignees
Milestone

Comments

@at15
Copy link
Member

at15 commented Aug 12, 2016

cobra has built in support https://github.com/spf13/cobra/blob/master/bash_completions.md

  • basic complete
  • custom command Use and generate of bash script
  • *zsh (since once when using Mac/Ubuntu, oh-my-zsh is used more often)
  • pack third party script bash_completion into binary
@at15 at15 added this to the 0.1.0 milestone Aug 12, 2016
@at15 at15 self-assigned this Aug 12, 2016
@at15
Copy link
Member Author

at15 commented Aug 12, 2016

the bash file is generated, but got error __ltrim_colon_completions: command not found,is it win or git bash specific problem?

from http://stackoverflow.com/questions/26132451/how-to-add-bash-command-completion-for-docker-on-mac-os-x answer of Michael_Scharf
it seems bash completion need to be installed on windows, it does not ship with the installer.

at15 added a commit that referenced this issue Aug 12, 2016
- NOTE: third party included a GPLV2 script, bash_compltion

For #45
@at15
Copy link
Member Author

at15 commented Aug 12, 2016

current status is

  • it is working on my local machine
  • NO document
  • having bash completion code may require this project change its license to GPLV2, so maybe is better to let user install it by themselves.
  • embed script requires other library, this is an important part for Ayi since the static assets for web interface should ship with the code like jar, but it should open another issue.

so just leave it to backlog

@at15
Copy link
Member Author

at15 commented Aug 8, 2017

cobra now supports zsh completion (basically)

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

1 participant