Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

Commit 0d07a7f

Browse files
author
Hao Zhang
authored
fix pull command
1 parent 2ad6fd4 commit 0d07a7f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

compose/internal/composeplugin/composeplugin.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ func (wrapper *PluginWrapper) Remove(ctx context.Context, workingDir, host, proj
8383

8484
// Pull images
8585
func (wrapper *PluginWrapper) Pull(ctx context.Context, workingDir, host, projectName string, filePaths []string) error {
86-
output, err := wrapper.command(newDownCommand(filePaths), workingDir, host, projectName, "")
86+
output, err := wrapper.command(newPullCommand(filePaths), workingDir, host, projectName, "")
8787
if len(output) != 0 {
88-
log.Printf("[libstack,composebinary] [message: finish deploying] [output: %s] [err: %s]", output, err)
88+
log.Printf("[libstack,composebinary] [message: finish pulling] [output: %s] [err: %s]", output, err)
8989
}
9090

9191
return err
@@ -157,6 +157,10 @@ func newDownCommand(filePaths []string) composeCommand {
157157
return newCommand([]string{"down", "--remove-orphans"}, filePaths)
158158
}
159159

160+
func newPullCommand(filePaths []string) composeCommand {
161+
return newCommand([]string{"pull"}, filePaths)
162+
}
163+
160164
func (command *composeCommand) WithConfigPath(configPath string) {
161165
command.args = append(command.args, "--config", configPath)
162166
}

0 commit comments

Comments
 (0)