MCPcopy Index your code
hub / github.com/writefreely/writefreely / delUserAction

Function delUserAction

cmd/writefreely/user.go:76–85  ·  view source on GitHub ↗
(c *cli.Context)

Source from the content-addressed store, hash-verified

74}
75
76func delUserAction(c *cli.Context) error {
77 username := ""
78 if c.NArg() > 0 {
79 username = c.Args().Get(0)
80 } else {
81 return fmt.Errorf("No user passed. Example: writefreely user delete [USER]")
82 }
83 app := writefreely.NewApp(c.String("c"))
84 return writefreely.DoDeleteAccount(app, username)
85}
86
87func resetPassAction(c *cli.Context) error {
88 username := ""

Callers

nothing calls this directly

Calls 3

NewAppFunction · 0.92
DoDeleteAccountFunction · 0.92
StringMethod · 0.80

Tested by

no test coverage detected