Skip to content

Commit a8aaba9

Browse files
fix docker compose arguments command
1 parent 59f028a commit a8aaba9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

main.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
//
2-
// @Author: Firstname Lastname
3-
// @email: fadym[at]gmail[dot]com
4-
// @github: https://github.com/fadym
2+
//
3+
// @Author: F.Michel
4+
5+
// @github: https://github.com/phpdevcommunity
56
package main
67

78
import (
@@ -214,9 +215,9 @@ func executeLine(lineOriginal string, values *map[string]string) {
214215
if len(args) < 2 {
215216
pterm.Error.WithFatal().Printf("Invalid execute command: %s", line)
216217
}
217-
dockerComposeExec := args[1]
218+
dockerComposeExec := args[1:]
218219
dockerCompose := GetDockerComposeCommand()
219-
run(fmt.Sprintf("%s %s", dockerCompose, dockerComposeExec), false)
220+
run(fmt.Sprintf("%s %s", dockerCompose, strings.Join(dockerComposeExec, " ")), true)
220221
return
221222
} else if action == "wf" {
222223
args := strings.Fields(line)

0 commit comments

Comments
 (0)