Thanks to @albers and @sdurrheimer, we now have both bash and zsh completion, which is fantastic. However, they (understandably) both do a lot of hacky stuff to read the YAML file without actually parsing YAML properly, and they both implement this separately.
We could potentially add some commands/flags to Compose that would give them the information they need in a simple shell-parseable format. Going off a quick scan of the bash script, it looks like it'd be useful to be able to list:
Perhaps a docker-compose services command:
$ docker-compose services
web
redis
$ docker-compose services --with-option="build"
web
$ docker-compose services --with-running-container
redis
Thanks to @albers and @sdurrheimer, we now have both bash and zsh completion, which is fantastic. However, they (understandably) both do a lot of hacky stuff to read the YAML file without actually parsing YAML properly, and they both implement this separately.
We could potentially add some commands/flags to Compose that would give them the information they need in a simple shell-parseable format. Going off a quick scan of the bash script, it looks like it'd be useful to be able to list:
extendsto get the correct configuration, which I doubt would be any fun at all to implement in shell scriptPerhaps a
docker-compose servicescommand: