Usage:"The login name corresponding to an account within the given auth method.",
})
f.StringVar(&base.StringVar{
Name:"password",
Target:&c.flagPassword,
EnvVar:envPassword,
Usage:"The password associated with the login name. If blank, the command will prompt for the password to be entered interactively in a non-echoing way. Otherwise, this can refer to a file on disk (file://) from which a password will be read or an env var (env://) from which the password will be read.",
})
f.StringVar(&base.StringVar{
Name:"auth-method-id",
EnvVar:"BOUNDARY_AUTH_METHOD_ID",
Target:&c.FlagAuthMethodId,
Usage:"The auth-method resource to use for the operation.",
c.UI.Error(fmt.Sprintf("An error occurred attempting to read the login name. The raw error message is shown below but usually this is because you attempted to pipe a value into the command or you are executing outside of a terminal (TTY). The raw error was:\n\n%s",err.Error()))
returnbase.CommandUserError
}
c.flagLoginName=strings.TrimSpace(input)
}
switchc.flagPassword{
case"":
fmt.Print("Please enter the password (it will be hidden): ")
value,err:=password.Read(os.Stdin)
fmt.Print("\n")
iferr!=nil{
c.UI.Error(fmt.Sprintf("An error occurred attempting to read the password. The raw error message is shown below but usually this is because you attempted to pipe a value into the command or you are executing outside of a terminal (TTY). The raw error was:\n\n%s",err.Error()))