(c *cli.Context)
| 85 | } |
| 86 | |
| 87 | func resetPassAction(c *cli.Context) error { |
| 88 | username := "" |
| 89 | if c.NArg() > 0 { |
| 90 | username = c.Args().Get(0) |
| 91 | } else { |
| 92 | return fmt.Errorf("No user passed. Example: writefreely user reset-pass [USER]") |
| 93 | } |
| 94 | app := writefreely.NewApp(c.String("c")) |
| 95 | return writefreely.ResetPassword(app, username) |
| 96 | } |
nothing calls this directly
no test coverage detected