Skip to content

bake: add completion to list targets - #1674

Closed
crazy-max wants to merge 2 commits into
docker:masterfrom
crazy-max:bake-autocomp
Closed

bake: add completion to list targets#1674
crazy-max wants to merge 2 commits into
docker:masterfrom
crazy-max:bake-autocomp

Conversation

@crazy-max

@crazy-maxcrazy-max commented Mar 12, 2023

Copy link
Copy Markdown
Member

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

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@crazy-max
crazy-max marked this pull request as ready for review March 13, 2023 08:51
@crazy-max
crazy-max marked this pull request as draft April 9, 2023 20:43
@crazy-maxcrazy-max mentioned this pull request Apr 9, 2023
@crazy-max
crazy-max deleted the bake-autocomp branch May 9, 2023 08:59
Sign up for freeto 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

@crazy-max