// Backwards compat: allow reading from existing BOUNDARY_TOKEN env var
c.UI.Warn(`Direct usage of BOUNDARY_TOKEN env var is deprecated; please use "-token env://<env var nameL>" format, e.g. "-token env://BOUNDARY_TOKEN" to specify an env var to use.`)
c.UI.Warn(`Direct usage of BOUNDARY_TOKEN env var is deprecated; please use "-token env://<env var name>" format, e.g. "-token env://BOUNDARY_TOKEN" to specify an env var to use.`)
Usage:`A URL pointing to a file on disk (file://) from which a token will be read or an env var (env://) from which the token will be read. Overrides the "token-name" parameter.`,
fmt.Print("Current password is not set as flag, please enter it now (will be hidden): ")
fmt.Print("Please enter the current 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()))
returnfalse
}
fmt.Print("Please enter it one more time for confirmation: ")
fmt.Print("New password is not set as flag, please enter it now (will be hidden): ")
fmt.Print("Please enter the new 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()))
returnfalse
}
fmt.Print("Please enter it one more time for confirmation: ")