Nicolas De loof
Nicolas De loof
Ocky Dock
CTHULHU 🥴
KORO (sensei)
Should be easy to generate one, as Cobra command library includes support for generating completion scripts https://github.com/spf13/cobra/blob/master/shell_completions.md
@mat007 we don't have **any** shell completion support for `docker compose` yet, so we can start with a minimal one, then would be nice we can rely on cobra's `BashCompletionFunction`...
AFAICT offering command line completion for `docker compose` (space) isn't trivial due to the CLI plugin architecture, but we could automatically produce completion for `docker-compose` (when used standalone) using Cobra...
IIRC @ulyssessouza experimented with this, but he was blocked by docker CLI plugin architecture (we can't extend the docker CLI completion script) But for direct use of docker-compose binary, we...
Please note the existing `docker-compose` bash completion still works with compose v2 when used as a standalone binary. But it would beed some update to add support for additional commands...
Started experimenting with cobra 1.3.0 to adopt cobra (dynamic) completion v2 : https://github.com/docker/cli/pull/3429
Command line completion for `docker compose` as a docker CLI plugin will be enabled by https://github.com/docker/cli/pull/3429