Add support for --detach/-d flag in stack rm

Added --detach/-d to stack rm. Setting --detach=false waits until
all of the stack tasks have reached a terminal state.

Co-authored-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: George Margaritis <gmargaritis@protonmail.com>
This commit is contained in:
George Margaritis
2023-05-05 15:36:36 +03:00
committed by Sebastiaan van Stijn
parent 4a43b8eaed
commit 238d659ff9
5 changed files with 65 additions and 0 deletions

View File

@ -38,6 +38,7 @@ type PS struct {
// Remove holds docker stack remove options
type Remove struct {
Namespaces []string
Detach bool
}
// Services holds docker stack services options