I’m making a command for Cobra CLIs to generate a ...
# contribute
s
I’m making a command for Cobra CLIs to generate a spec for fig.io autocompletion. I noticed that the pulumi release doesn’t have
pulumi completion
, but my local dev version does. Wondering how you pull this off (not just hiding the command but actually making it unavailable to end user)
b
do you mean shell autocompletion?
s
Yes
I can run
pulumi completion
on my dev build but not on the release I have from brew
Just wondering why/how it’s not available on the release
b
the homebrew formula should have installed completions: https://github.com/Homebrew/homebrew-core/blob/master/Formula/pulumi.rb#L40-L42
s
Right I see
gen-completion is the command
For some reason my dev build also works with
pulumi completion