You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prompt=`Help improve Skaffold! Take a 10 seconds anonymous survey by running
28
-
$skaffold survey`
32
+
Prompt=`Help improve Skaffold! Take a 10-second anonymous survey by running
33
+
skaffold survey`
34
+
35
+
URL="https://forms.gle/BMTbGQXLWSdn7vEs6"
29
36
)
30
37
31
-
// for testing
32
38
var (
39
+
Form=fmt.Sprintf(`Thank you for offering your feedback on Skaffold! Understanding your experiences and opinions helps us make Skaffold better for you and other users.
40
+
Our survey can be found here: %s
41
+
42
+
To permanently disable the survey prompt, run:
43
+
skaffold config set --survey --global disable-prompt true`, URL)
44
+
45
+
// for testing
33
46
isStdOut=stdOut
47
+
open=browser.OpenURL
34
48
)
35
49
36
-
funcDisplaySurveyForm(out io.Writer) {
50
+
typeRunnerstruct {
51
+
configFilestring
52
+
}
53
+
54
+
funcNew(configFilestring) *Runner {
55
+
return&Runner{
56
+
configFile: configFile,
57
+
}
58
+
}
59
+
60
+
funcDisplaySurveyPrompt(out io.Writer) {
37
61
ifisStdOut(out) {
38
-
color.Default.Fprintln(out, Prompt)
62
+
fmt.Fprintln(out, Prompt)
63
+
}
64
+
}
65
+
66
+
func (s*Runner) OpenSurveyForm(_ context.Context, out io.Writer) error {
67
+
_, err:=fmt.Fprintln(out, Form)
68
+
iferr!=nil {
69
+
returnerr
70
+
}
71
+
iferr:=open(URL); err!=nil {
72
+
logrus.Debugf("could not open url %s", URL)
73
+
returnerr
39
74
}
75
+
// Currently we will only update the global survey taken
76
+
// When prompting for the survey, we need to use the same field.
0 commit comments