Signed-off-by: Thomas LEVEIL <thomasleveil@gmail.com>
| ... | ... |
@@ -151,7 +151,7 @@ _docker_build() |
| 151 | 151 |
|
| 152 | 152 |
case "$cur" in |
| 153 | 153 |
-*) |
| 154 |
- COMPREPLY=( $( compgen -W "-t --tag -q --quiet --no-cache --rm" -- "$cur" ) ) |
|
| 154 |
+ COMPREPLY=( $( compgen -W "-t --tag -q --quiet --no-cache --rm --force-rm" -- "$cur" ) ) |
|
| 155 | 155 |
;; |
| 156 | 156 |
*) |
| 157 | 157 |
local counter="$(__docker_pos_first_nonflag '-t|--tag')" |
| ... | ... |
@@ -72,6 +72,7 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from attach' -a '(__fish_pri |
| 72 | 72 |
|
| 73 | 73 |
# build |
| 74 | 74 |
complete -c docker -f -n '__fish_docker_no_subcommand' -a build -d 'Build an image from a Dockerfile' |
| 75 |
+complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l force-rm -d 'Always remove intermediate containers, even after unsuccessful builds' |
|
| 75 | 76 |
complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l no-cache -d 'Do not use cache when building the image' |
| 76 | 77 |
complete -c docker -A -f -n '__fish_seen_subcommand_from build' -s q -l quiet -d 'Suppress the verbose output generated by the containers' |
| 77 | 78 |
complete -c docker -A -f -n '__fish_seen_subcommand_from build' -l rm -d 'Remove intermediate containers after a successful build' |
| ... | ... |
@@ -176,6 +176,7 @@ __docker_subcommand () {
|
| 176 | 176 |
;; |
| 177 | 177 |
(build) |
| 178 | 178 |
_arguments \ |
| 179 |
+ '--force-rm[Always remove intermediate containers, even after unsuccessful builds]' \ |
|
| 179 | 180 |
'--no-cache[Do not use cache when building the image]' \ |
| 180 | 181 |
'-q[Suppress verbose build output]' \ |
| 181 | 182 |
'--rm[Remove intermediate containers after a successful build]' \ |