2023-09-04 16:38:53 +00:00
|
|
|
//go:build slim
|
|
|
|
|
|
|
|
package cli
|
|
|
|
|
2024-03-15 16:24:38 +00:00
|
|
|
import "github.com/coder/serpent"
|
2023-09-04 16:38:53 +00:00
|
|
|
|
2024-03-17 14:45:26 +00:00
|
|
|
func (*RootCmd) resetPassword() *serpent.Command {
|
|
|
|
root := &serpent.Command{
|
2023-09-04 16:38:53 +00:00
|
|
|
Use: "reset-password <username>",
|
|
|
|
Short: "Directly connect to the database to reset a user's password",
|
|
|
|
// We accept RawArgs so all commands and flags are accepted.
|
|
|
|
RawArgs: true,
|
|
|
|
Hidden: true,
|
2024-03-15 16:24:38 +00:00
|
|
|
Handler: func(inv *serpent.Invocation) error {
|
2023-09-04 16:38:53 +00:00
|
|
|
SlimUnsupported(inv.Stderr, "reset-password")
|
|
|
|
return nil
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
return root
|
|
|
|
}
|