mirror of https://github.com/docker/cli.git
Add bash completion for `system df --format`
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
852a861b8e
commit
3e646fed80
|
@ -4173,9 +4173,15 @@ _docker_system() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_docker_system_df() {
|
_docker_system_df() {
|
||||||
|
case "$prev" in
|
||||||
|
--format)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
-*)
|
-*)
|
||||||
COMPREPLY=( $( compgen -W "--help --verbose -v" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "--format --help --verbose -v" -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,6 +21,7 @@ Usage: docker system df [OPTIONS]
|
||||||
Show docker filesystem usage
|
Show docker filesystem usage
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
--format string Pretty-print images using a Go template
|
||||||
--help Print usage
|
--help Print usage
|
||||||
-v, --verbose Show detailed information on space usage
|
-v, --verbose Show detailed information on space usage
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue