(be module.PlainUserDB, ctx *cli.Context)
| 211 | } |
| 212 | |
| 213 | func usersRemove(be module.PlainUserDB, ctx *cli.Context) error { |
| 214 | username := ctx.Args().First() |
| 215 | if username == "" { |
| 216 | return errors.New("error: USERNAME is required") |
| 217 | } |
| 218 | |
| 219 | if !ctx.Bool("yes") { |
| 220 | if !clitools2.Confirmation("Are you sure you want to delete this user account?", false) { |
| 221 | return errors.New("cancelled") |
| 222 | } |
| 223 | } |
| 224 | |
| 225 | return be.DeleteUser(username) |
| 226 | } |
| 227 | |
| 228 | func usersPassword(be module.PlainUserDB, ctx *cli.Context) error { |
| 229 | username := ctx.Args().First() |
no test coverage detected