" This command allows changing the password (with verification of the current password) on account-type resources, if the types match and the operation is allowed by the given account type. Example:",
"",
" Change the password on a password-type account:",
"",
` $ boundary accounts change-password -id apw_1234567890 -current-password <empty, to be read by stdin> -new-password <empty, to be read by stdin>`,
" This command allows setting the password on account-type resources, if the types match and the operation is allowed by the given account type. Example:",
"",
" Set the password on a password-type account:",
"",
` $ boundary accounts set-password -id apw_1234567890 -password <empty, to be read by stdin>`,
fmt.Print("Password is not set as flag, please enter it now (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()))
fmt.Print("Please enter it one more time for confirmation: ")
confirmation,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()))
fmt.Print("Current password is not set as flag, please enter it now (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()))
fmt.Print("Please enter it one more time for confirmation: ")
confirmation,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()))
fmt.Print("New password is not set as flag, please enter it now (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()))