Skip to content

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Dec 3, 2025

With this patch:

docker stack deploy -c<TAB>
.codecov.yml       contrib/           e2e/               pkg/
.git/              build/             debian/            experimental/
...

docker stack deploy -c contrib/otel/<TAB>
compose.yaml  otelcol.yaml  prom.yaml

Note that filtering for the file-extension only appears to be functional on bash, but not (currently) working on other shells (at least not on Fish).

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

Add shell completion for `docker stack deploy --compose-file`

- A picture of a cute animal (not mandatory but encouraged)

With this patch:

    docker stack deploy -c<TAB>
    .codecov.yml       contrib/           e2e/               pkg/
    .git/              build/             debian/            experimental/
    ...

    docker stack deploy -c contrib/otel/<TAB>
    compose.yaml  otelcol.yaml  prom.yaml

Note that filtering for the file-extension only appears to be functional
on bash, but not (currently) working on other shells (at least not on Fish).

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@thaJeztah thaJeztah merged commit dfa98d3 into docker:master Dec 3, 2025
105 of 106 checks passed
@thaJeztah thaJeztah deleted the compose_file_completion branch December 3, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bash file completion not working for docker stack deploy -c

3 participants