@@ -110,27 +110,25 @@ func ensureRepo(cmd *cobra.Command, runtimeName string, cloneOpts *git.CloneOpti
110
110
return fmt .Errorf ("failed getting runtime repo information: %w" , err )
111
111
}
112
112
if runtimeData .Repo != nil {
113
- cloneOpts .Repo = * runtimeData .Repo
114
113
die (cmd .Flags ().Set ("repo" , * runtimeData .Repo ))
115
114
return nil
116
115
}
117
116
}
118
117
if ! store .Get ().Silent {
119
- return getRepoFromUserInput (cmd , cloneOpts )
118
+ return getRepoFromUserInput (cmd )
120
119
}
121
120
}
122
121
return nil
123
122
}
124
123
125
- func getRepoFromUserInput (cmd * cobra.Command , cloneOpts * git. CloneOptions ) error {
124
+ func getRepoFromUserInput (cmd * cobra.Command ) error {
126
125
repoPrompt := promptui.Prompt {
127
126
Label : "Repository URL" ,
128
127
}
129
128
repoInput , err := repoPrompt .Run ()
130
129
if err != nil {
131
130
return fmt .Errorf ("Prompt error: %w" , err )
132
131
}
133
- cloneOpts .Repo = repoInput
134
132
die (cmd .Flags ().Set ("repo" , repoInput ))
135
133
return nil
136
134
}
@@ -205,20 +203,19 @@ func getRuntimeNameFromUserSelect(ctx context.Context, runtimeName *string) erro
205
203
206
204
func ensureGitToken (cmd * cobra.Command , cloneOpts * git.CloneOptions ) error {
207
205
if cloneOpts .Auth .Password == "" && ! store .Get ().Silent {
208
- return getGitTokenFromUserInput (cmd , cloneOpts )
206
+ return getGitTokenFromUserInput (cmd )
209
207
}
210
208
return nil
211
209
}
212
210
213
- func getGitTokenFromUserInput (cmd * cobra.Command , cloneOpts * git. CloneOptions ) error {
211
+ func getGitTokenFromUserInput (cmd * cobra.Command ) error {
214
212
gitTokenPrompt := promptui.Prompt {
215
213
Label : "Git provider api token" ,
216
214
}
217
215
gitTokenInput , err := gitTokenPrompt .Run ()
218
216
if err != nil {
219
217
return fmt .Errorf ("Prompt error: %w" , err )
220
218
}
221
- cloneOpts .Auth .Password = gitTokenInput
222
219
die (cmd .Flags ().Set ("git-token" , gitTokenInput ))
223
220
return nil
224
221
}
@@ -323,7 +320,7 @@ func getIngressHostFromUserInput(cmd *cobra.Command, ingressHost *string) error
323
320
}
324
321
325
322
ingressHostPrompt := promptui.Prompt {
326
- Label : "Ingress host" ,
323
+ Label : "Ingress host (leave blank to skip) " ,
327
324
}
328
325
329
326
ingressHostInput , err := ingressHostPrompt .Run ()
0 commit comments