1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-24 04:57:03 +00:00

Implement subcommands: aliasusers, aliasuseradd, aliasusermod, aliasuserdel

This commit is contained in:
teru
2016-08-14 12:31:29 +09:00
parent fdd476d3b7
commit cd1101d096
5 changed files with 348 additions and 0 deletions

View File

@@ -87,6 +87,22 @@ func main() {
meta.SubCmdName = c.Subcommand()
return &command.UserCheckPwCommand{Meta: meta}, nil
},
"aliasusers": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.AliasUsersCommand{Meta: meta}, nil
},
"aliasuseradd": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.AliasUserAddCommand{Meta: meta}, nil
},
"aliasusermod": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.AliasUserModCommand{Meta: meta}, nil
},
"aliasuserdel": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.AliasUserDelCommand{Meta: meta}, nil
},
"catchall": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.CatchAllCommand{Meta: meta}, nil