MCPcopy Create free account
hub / github.com/cloudbase/garm / promptUnsetLoginVariables

Function promptUnsetLoginVariables

cmd/garm-cli/cmd/profile.go:261–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259}
260
261func promptUnsetLoginVariables() error {
262 var err error
263 if loginUserName == "" {
264 loginUserName, err = common.PromptString("Username")
265 if err != nil {
266 return err
267 }
268 }
269
270 if loginPassword == "" {
271 loginPassword, err = common.PromptPassword("Password", "")
272 if err != nil {
273 return err
274 }
275 }
276 return nil
277}

Callers 1

profile.goFile · 0.85

Calls 2

PromptStringFunction · 0.92
PromptPasswordFunction · 0.92

Tested by

no test coverage detected