mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 01:29:26 +00:00
Add user main command and add switch as sub command
This commit is contained in:
@@ -354,7 +354,7 @@ func getFreshUserCredentials(email string, password string) (*api.GetLoginOneV2R
|
||||
|
||||
func addNewUserPrompt() (bool, error) {
|
||||
prompt := promptui.Select{
|
||||
Label: "Infisical detects previous logged in users. Would you like to add a new user? Select[Yes/No]",
|
||||
Label: "A user is already logged in. Would you like to add a new user? Select[Yes/No]",
|
||||
Items: []string{"No", "Yes"},
|
||||
}
|
||||
|
||||
@@ -362,6 +362,7 @@ func addNewUserPrompt() (bool, error) {
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
|
||||
return result == "Yes", err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user