@@ -18,6 +18,8 @@ import (
1818 "github.com/scaleway/scaleway-sdk-go/scw"
1919)
2020
21+ const configFileGeneratedMessage = "Config file was generated to"
22+
2123type sshConfigServer struct {
2224 Name string
2325 Address string
@@ -116,15 +118,15 @@ Do you want the include statement to be added at the beginning of your file ?`,
116118 } else {
117119 logger .Warningf ("Failed to check default config file, skipping include prompt\n " )
118120 return & core.SuccessResult {
119- Message : "Config file was generated to " + configFilePath ,
121+ Message : configFileGeneratedMessage + " " + configFilePath ,
120122 }, nil
121123 }
122124 }
123125
124126 // Generated config is already included
125127 if included {
126128 return & core.SuccessResult {
127- Message : "Config file was generated to " + configFilePath ,
129+ Message : configFileGeneratedMessage + " " + configFilePath ,
128130 }, nil
129131 }
130132
@@ -136,7 +138,7 @@ Do you want the include statement to be added at the beginning of your file ?`,
136138 if err != nil {
137139 logger .Warningf ("Failed to prompt, skipping include\n " )
138140 return & core.SuccessResult {
139- Message : "Config file was generated to " + configFilePath ,
141+ Message : configFileGeneratedMessage + " " + configFilePath ,
140142 }, nil
141143 }
142144
@@ -148,7 +150,7 @@ Do you want the include statement to be added at the beginning of your file ?`,
148150 }
149151
150152 return & core.SuccessResult {
151- Message : "Config file was generated to " + configFilePath ,
153+ Message : configFileGeneratedMessage + " " + configFilePath ,
152154 }, nil
153155 },
154156 Groups : []string {"workflow" },
0 commit comments