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?