We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 738441b commit 3ff2962Copy full SHA for 3ff2962
cli/userstatus.go
@@ -81,8 +81,14 @@ func (r *RootCmd) createUserStatusCommand(sdkStatus codersdk.UserStatus) *clibas
81
}
82
83
// Prompt to confirm the action
84
+ var question string
85
+ if sdkStatus == codersdk.UserStatusDormant {
86
+ question = "Are you sure you want to mark this user as dormant?"
87
+ } else {
88
+ question = fmt.Sprintf("Are you sure you want to %s this user?", verb)
89
+ }
90
_, err = cliui.Prompt(inv, cliui.PromptOptions{
- Text: fmt.Sprintf("Are you sure you want to %s this user?", verb),
91
+ Text: question,
92
IsConfirm: true,
93
Default: cliui.ConfirmYes,
94
})
0 commit comments