buildx/docs/reference
Jonathan A. Sternberg ef4a165e48
commands: add an alias for --check to be the same as --call=check
This adds an alias for `--check` that causes it to behave the same as
`--call=check`. This is done using `BoolFunc` to call a function when
the option is seen and to set it to the correct value. This should allow
command line flags like `--check --call=targets` to work correctly (even
though they conflict) by making it so the first invocation sets the
print function to `check` and the second overwrites the first. This is
the expected behavior for these types of boolean flags.

`BoolFunc` itself is part of the standard library flags package, but
never seems to have made it into pflag possibly because it was added in
go 1.21.

https://pkg.go.dev/flag#FlagSet.BoolFunc

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-06-03 13:25:21 -05:00
..
buildx.md Add dial-stdio command 2024-02-08 22:16:00 +00:00
buildx_bake.md build: set record provenance in response 2024-04-11 10:11:27 +02:00
buildx_build.md commands: add an alias for --check to be the same as --call=check 2024-06-03 13:25:21 -05:00
buildx_create.md docs(driver): set buildkitd network mode 2024-02-22 23:07:50 +01:00
buildx_debug.md docs: update external link paths 2024-02-20 08:55:41 +01:00
buildx_debug_build.md commands: add an alias for --check to be the same as --call=check 2024-06-03 13:25:21 -05:00
buildx_dial-stdio.md Add dial-stdio command 2024-02-08 22:16:00 +00:00
buildx_du.md docs: add buildx du verbose example 2023-11-21 15:55:50 +01:00
buildx_imagetools.md docs: minor cli reference editorial updates 2023-11-16 16:05:38 +01:00
buildx_imagetools_create.md Updated the docs. 2024-05-29 22:54:09 -04:00
buildx_imagetools_inspect.md docs: minor cli reference editorial updates 2023-11-16 16:05:38 +01:00
buildx_inspect.md docs: minor cli reference editorial updates 2023-11-16 16:05:38 +01:00
buildx_ls.md Merge pull request #1787 from crazy-max/ls-format 2023-11-23 06:00:17 -08:00
buildx_prune.md docs: minor cli reference editorial updates 2023-11-16 16:05:38 +01:00
buildx_rm.md driver: make buildkitd "config" and "flags" names consistent 2024-02-22 10:26:18 +01:00
buildx_stop.md docs: minor cli reference editorial updates 2023-11-16 16:05:38 +01:00
buildx_use.md go.mod: update cli-docs-tool v0.5.1 and re-generate docs 2023-01-09 13:03:01 +01:00
buildx_version.md docs: minor cli reference editorial updates 2023-11-16 16:05:38 +01:00