|
|
@ -126,6 +126,10 @@ func (wrapper *PluginWrapper) command(command composeCommand, options libstack.O
|
|
|
|
command.WithHost(options.Host)
|
|
|
|
command.WithHost(options.Host)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if options.ProjectDir != "" {
|
|
|
|
|
|
|
|
command.WithProjectDirectory(options.ProjectDir)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var stderr bytes.Buffer
|
|
|
|
var stderr bytes.Buffer
|
|
|
|
|
|
|
|
|
|
|
|
args := []string{}
|
|
|
|
args := []string{}
|
|
|
@ -237,6 +241,10 @@ func (command *composeCommand) WithEnvFilePath(envFilePath string) {
|
|
|
|
command.globalArgs = append(command.globalArgs, "--env-file", envFilePath)
|
|
|
|
command.globalArgs = append(command.globalArgs, "--env-file", envFilePath)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func (command *composeCommand) WithProjectDirectory(projectDir string) {
|
|
|
|
|
|
|
|
command.globalArgs = append(command.globalArgs, "--project-directory", projectDir)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func (command *composeCommand) ToArgs() []string {
|
|
|
|
func (command *composeCommand) ToArgs() []string {
|
|
|
|
return append(command.globalArgs, command.subCommandAndArgs...)
|
|
|
|
return append(command.globalArgs, command.subCommandAndArgs...)
|
|
|
|
}
|
|
|
|
}
|
|
|
|