Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bake: add completion to list targets #1674

Closed
wants to merge 2 commits into from

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Mar 12, 2023

partially solves #1072
needs docker/cli#4089

Add completion to list bake targets and also folders (context) for build command.

Can be tested within this repo:

$ docker __completeNoDesc buildx ""
bake    Build from a file
build   Start a build
create  Create a new builder instance
du      Disk usage
imagetools      Commands to work on images in registry
inspect Inspect current builder instance
ls      List builder instances
prune   Remove build cache
rm      Remove a builder instance
stop    Stop builder instance
use     Set the current builder instance
version Show buildx version information
:4
Completion ended with directive: ShellCompDirectiveNoFileComp
$ docker __completeNoDesc buildx bake ""
default
validate
meta-helper
_common
lint
validate-vendor
validate-docs
validate-authors
validate-generated-files
update-vendor
update-docs
update-authors
update-generated-files
mod-outdated
test
binaries
binaries-cross
release
image
image-cross
image-local
:4
Completion ended with directive: ShellCompDirectiveNoFileComp
$ docker __completeNoDesc buildx bake "v"
validate
validate-vendor
validate-docs
validate-authors
validate-generated-files
:4
Completion ended with directive: ShellCompDirectiveNoFileComp

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.

1 participant