Marc Khouzam
Marc Khouzam
Hi @lamebear. I don't believe you can do exactly what you describe. However there is another way by using flags. You can choose that your command should be `configure` and...
Hi @johnnyjamil. You need to first get the shell completion script setup. You can look at how to do this through the help: `./program completion zsh -h`. To get you...
Yes homebrew can do this automatically. But you would need a homebrew package for your own tool. Here's Helm's: https://github.com/Homebrew/homebrew-core/blob/7b45a34a86645962ad642cb2e750662a995f076a/Formula/helm.rb#L33
Closing this as answered.
Since the cobra-cli uses cobra, isn't nice that it follows the same layout as other programs using cobra?
> @marckhouzam do other programs using cobra have the `main` function of the CLI separated from all the files defining the commands of the same CLI? I believe this PR...
Very good point. The quarterly idea sounds very appropriate. Thanks for bringing this up. 👍
Thanks @umarcor, can you provide details on why you had/chose to make these changes? Thanks
Hi @evermakeand thanks for the efforts. I haven't had time to look at the PR but for completions you can look at `shell_completions.md` for user documentation. As for the completion...
This seems reasonable. However, I never really understood the use case for initializers. What is the difference between using an `initializer`/`finalizer` compared to a `PersistentPreRun`/`PersistentPostRun`?