1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-21 03:27:02 +00:00

Implement subcommands: catchall, catchallset, catchallunset

This commit is contained in:
teru
2016-08-14 12:30:24 +09:00
parent 0e5c671580
commit fdd476d3b7
4 changed files with 227 additions and 0 deletions

View File

@@ -87,6 +87,18 @@ func main() {
meta.SubCmdName = c.Subcommand()
return &command.UserCheckPwCommand{Meta: meta}, nil
},
"catchall": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.CatchAllCommand{Meta: meta}, nil
},
"catchallset": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.CatchAllSetCommand{Meta: meta}, nil
},
"catchallunset": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.CatchAllUnsetCommand{Meta: meta}, nil
},
"commit": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.CommitCommand{Meta: meta}, nil