Browse code

Add bash completion for `system df --format`

Signed-off-by: Harald Albers <github@albersweb.de>

Harald Albers authored on 2017/04/27 17:26:04
Showing 2 changed files
... ...
@@ -4168,9 +4168,15 @@ _docker_system() {
4168 4168
 }
4169 4169
 
4170 4170
 _docker_system_df() {
4171
+	case "$prev" in
4172
+		--format)
4173
+			return
4174
+			;;
4175
+	esac
4176
+
4171 4177
 	case "$cur" in
4172 4178
 		-*)
4173
-			COMPREPLY=( $( compgen -W "--help --verbose -v" -- "$cur" ) )
4179
+			COMPREPLY=( $( compgen -W "--format --help --verbose -v" -- "$cur" ) )
4174 4180
 			;;
4175 4181
 	esac
4176 4182
 }
... ...
@@ -21,8 +21,9 @@ Usage:	docker system df [OPTIONS]
21 21
 Show docker filesystem usage
22 22
 
23 23
 Options:
24
-      --help      Print usage
25
-  -v, --verbose   Show detailed information on space usage
24
+      --format string   Pretty-print images using a Go template
25
+      --help            Print usage
26
+  -v, --verbose         Show detailed information on space usage
26 27
 ```
27 28
 
28 29
 ## Description