1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-20 02:57:06 +00:00

Implement subcommands: users, useradd, userdel

This commit is contained in:
teru
2016-08-13 08:02:46 +09:00
parent 5e13d9546c
commit ec5347b2f2
4 changed files with 244 additions and 0 deletions

View File

@@ -67,6 +67,18 @@ func main() {
meta.SubCmdName = c.Subcommand()
return &command.AliasDomainDelCommand{Meta: meta}, nil
},
"users": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.UsersCommand{Meta: meta}, nil
},
"useradd": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.UserAddCommand{Meta: meta}, nil
},
"userdel": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.UserDelCommand{Meta: meta}, nil
},
"commit": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.CommitCommand{Meta: meta}, nil