Add bash completion for system df --format
Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
d90fb13de7
commit
69a2ca0d44
2 changed files with 10 additions and 3 deletions
|
@ -4168,9 +4168,15 @@ _docker_system() {
|
|||
}
|
||||
|
||||
_docker_system_df() {
|
||||
case "$prev" in
|
||||
--format)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
case "$cur" in
|
||||
-*)
|
||||
COMPREPLY=( $( compgen -W "--help --verbose -v" -- "$cur" ) )
|
||||
COMPREPLY=( $( compgen -W "--format --help --verbose -v" -- "$cur" ) )
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
|
@ -21,8 +21,9 @@ Usage: docker system df [OPTIONS]
|
|||
Show docker filesystem usage
|
||||
|
||||
Options:
|
||||
--help Print usage
|
||||
-v, --verbose Show detailed information on space usage
|
||||
--format string Pretty-print images using a Go template
|
||||
--help Print usage
|
||||
-v, --verbose Show detailed information on space usage
|
||||
```
|
||||
|
||||
## Description
|
||||
|
|
Loading…
Add table
Reference in a new issue