Skip to content

Commit 135939f

Browse files
fix(init): autocomplete install eval line
1 parent 8cb23eb commit 135939f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/namespaces/autocomplete/autocomplete.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func InstallCommandRun(ctx context.Context, argsI interface{}) (i interface{}, e
190190
}
191191

192192
// Warning
193-
_, _ = interactive.Println("To enable autocompletion we need to append to " + shellConfigurationFilePath + " the following line:\n\t" + script.CompleteScript)
193+
_, _ = interactive.Println("To enable autocompletion we need to append to " + shellConfigurationFilePath + " the following lines:\n\t# Scaleway CLI autocomplete initialization.\n\t" + script.CompleteScript)
194194

195195
// Early exit if user disagrees
196196
continueInstallation, err := interactive.PromptBoolWithConfig(&interactive.PromptBoolConfig{
@@ -205,7 +205,7 @@ func InstallCommandRun(ctx context.Context, argsI interface{}) (i interface{}, e
205205
}
206206

207207
// Append to file
208-
_, err = f.Write([]byte(script.CompleteScript + "\n"))
208+
_, err = f.Write([]byte("\n# Scaleway CLI autocomplete initialization.\n" + script.CompleteScript + "\n"))
209209
if err != nil {
210210
return nil, err
211211
}

0 commit comments

Comments
 (0)