You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buildx/commands
Sebastiaan van Stijn f4f58003fb
Add -f shorthand flag for prune --force
The docker builder prune command has a shorthand `-f` flag for `--force`:

    docker builder prune --help

    Usage:	docker builder prune

    Remove build cache

    Options:
      -a, --all                  Remove all unused build cache, not just dangling ones
          --filter filter        Provide filter values (e.g. 'until=24h')
      -f, --force                Do not prompt for confirmation
          --keep-storage bytes   Amount of disk space to keep for cache

Given that `buildx` can be used as a drop-in replacement for the native build
commands, it should match the UI, and also have a shorthand flag.

This patch also updates the flag's description to be in line with the docker commandline

With this patch applied;

    buildx prune --help
    Remove build cache

    Usage:
      buildx prune [flags]

    Flags:
      -a, --all                  Remove all unused images, not just dangling ones
          --filter filter        Provide filter values (e.g. 'until=24h')
      -f, --force                Do not prompt for confirmation
      -h, --help                 help for prune
          --keep-storage bytes   Amount of disk space to keep for cache
          --verbose              Provide a more verbose output

    Global Flags:
          --builder string   Override the configured builder instance

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
5 years ago
..
imagetools imagetools: avoid printing newline on raw mode 5 years ago
bake.go bake: reset no-cache and pull if not set 5 years ago
build.go bake: reset no-cache and pull if not set 5 years ago
create.go driver: allow setting driver opts 6 years ago
diskusage.go Add builder as a global flag. 5 years ago
inspect.go Merge pull request #263 from tonistiigi/platforms-print 5 years ago
install.go install/uninstall: allow aliasing buildx to `docker builder` 6 years ago
ls.go separate manual and automatically detected platforms 5 years ago
prune.go Add -f shorthand flag for prune --force 5 years ago
rm.go Add builder as a global flag. 5 years ago
root.go Add builder as a global flag. 5 years ago
stop.go Add builder as a global flag. 5 years ago
uninstall.go install/uninstall: allow aliasing buildx to `docker builder` 6 years ago
use.go Add builder as a global flag. 5 years ago
util.go Add option to build/bake to override instance 5 years ago
version.go rename to docker/buildx 6 years ago