feat: suppress output when not necessary

This commit is contained in:
Jose Diaz-Gonzalez
2020-11-01 18:21:50 -05:00
parent 85fafcf170
commit 54fb2b5d75

View File

@@ -164,7 +164,11 @@ func TriggerProcfileGetCommand(appName string, processType string, port int) err
procfilePath := getProcfilePath(appName) procfilePath := getProcfilePath(appName)
if !common.FileExists(procfilePath) { if !common.FileExists(procfilePath) {
image := common.GetDeployingAppImageName(appName, "", "") image := common.GetDeployingAppImageName(appName, "", "")
if err := common.PlugnTrigger("procfile-extract", []string{appName, image}...); err != nil { err := common.SuppressOutput(func() error {
return common.PlugnTrigger("procfile-extract", []string{appName, image}...)
})
if err != nil {
return err return err
} }
} }