-
Notifications
You must be signed in to change notification settings - Fork 117
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
"Using config file" displays when doing completion command #56
Comments
Since this line is printed to stderr, the simplest thing to do is to redirect stderr: The overall better approach is to avoid sourcing the completion script at every start of the shell. Instead you can store the completion script once in the shell's completion directory. You can run |
This doesn't work $ source <(cobra-cli completion bash) 2> /dev/null
Using config file: /home/chernand/.cobra.yaml
My preference isn't to load these into a file but instead, load it dynamically. Reason for this is that I don't have to update the completion every time the CLI changes. |
Sorry, my mistake. You should use
Valid point. For CLIs that are installed with a package manager, this should all be taken care of automatically. But if not, then I understand. |
Running
Displays
This isn't causing an issue, but it's a bit of a cosmetic annoyance, especially since I have
source <(cobra-cli completion bash)
. This text displays every time I open a new terminal tab.Is there a way to suppress it?
The text was updated successfully, but these errors were encountered: