#StackBounty: #bash #go #bash-completion #go-cobra Making Cobra flag bash completion using remote data

Bounty: 50

I’m working on a Cobra-based Go app and I want to have a bash completion for command line flags:

$ my-cool-app --some-id=

The list of valid values for --some-id flag is available by making some HTTP call. How to make such bash completion available using Cobra?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.