backup: Move taking snapshot to separate function
This commit moves taking a snapshot of a running instance to a separate function.
This commit is contained in:
parent
ef338cca05
commit
bb73a73f57
5 changed files with 164 additions and 102 deletions
|
|
@ -94,7 +94,7 @@ func (ds Stack) Run(io stream.IOStream, autoRemove bool, service, command string
|
|||
if !io.StdinIsATerminal() {
|
||||
compose = append(compose, "-T")
|
||||
}
|
||||
compose = append(compose, command)
|
||||
compose = append(compose, service, command)
|
||||
compose = append(compose, args...)
|
||||
|
||||
code, err := ds.compose(io, compose...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue