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

source <(ecctl generate completions) is not working #401

Open
TomonoriSoejima opened this issue Oct 23, 2020 · 1 comment
Open

source <(ecctl generate completions) is not working #401

TomonoriSoejima opened this issue Oct 23, 2020 · 1 comment
Labels
Installation Installation or getting started issues Team:Delivery

Comments

@TomonoriSoejima
Copy link

TomonoriSoejima commented Oct 23, 2020

I ran into this weird issue and hopefully, someone may find it useful in case your .bash_profile is messy like mine 馃槄

so when I added source <(ecctl generate completions) into my .bash_profile and typed ecctl in my terminal, I was getting no suggestions.

Thus I ended up like this as a workaround like this.

In my .bash_profile I added extra block below because I ran into this issue

if [ -f $(brew --prefix)/etc/bash_completion ]; then
    . $(brew --prefix)/etc/bash_completion

fi

# source <(ecctl generate completions)

. /Users/surfer/Dropbox/Mackup/ecctl.completion

/Users/surfer/Dropbox/Mackup/ecctl.completion is created like this.

$ ecctl generate completions > /Users/surfer/Dropbox/Mackup/ecctl.completion

  • my environment
[nami:~]$ uname -a 
Darwin nami.local 19.6.0 Darwin Kernel Version 19.6.0: Mon Aug 31 22:12:52 PDT 2020; root:xnu-6153.141.2~1/RELEASE_X86_64 x86_64 i386 MacBookPro16,1 Darwin
[nami:~]$ 
@marclop marclop added the Installation Installation or getting started issues label Dec 16, 2020
@karencfv
Copy link
Contributor

Related: The next cobra release will provide a fully functional completion command. We should keep this in mind when upgrading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation Installation or getting started issues Team:Delivery
Projects
None yet
Development

No branches or pull requests

3 participants