Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions contrib/completion/bash/docker
Original file line number Diff line number Diff line change
Expand Up @@ -4882,6 +4882,7 @@ _docker_search() {

_docker_stack() {
local subcommands="
config
deploy
ls
ps
Expand Down Expand Up @@ -4910,6 +4911,21 @@ _docker_stack() {
esac
}

_docker_stack_config() {
case "$prev" in
--compose-file|-c)
_filedir yml
return
;;
esac

case "$cur" in
-*)
COMPREPLY=( $( compgen -W "--compose-file -c --help --skip-interpolation" -- "$cur" ) )
;;
esac
}

_docker_stack_deploy() {
__docker_complete_stack_orchestrator_options && return

Expand Down
3 changes: 0 additions & 3 deletions docs/reference/commandline/stack_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ Usage: docker stack config [OPTIONS]

Outputs the final config file, after doing merges and interpolations

Aliases:
config, cfg

Options:
-c, --compose-file strings Path to a Compose file, or "-" to read from stdin
--orchestrator string Orchestrator to use (swarm|kubernetes|all)
Expand Down