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

Implement subcommands: aliasdomains, aliasdomainadd, aliasdomaindel

This commit is contained in:
teru
2016-08-12 20:35:46 +09:00
parent 2bcfc6b0fe
commit 5e13d9546c
4 changed files with 238 additions and 0 deletions

View File

@@ -55,6 +55,18 @@ func main() {
meta.SubCmdName = c.Subcommand()
return &command.DomainDelCommand{Meta: meta}, nil
},
"aliasdomains": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.AliasDomainsCommand{Meta: meta}, nil
},
"aliasdomainadd": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.AliasDomainAddCommand{Meta: meta}, nil
},
"aliasdomaindel": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.AliasDomainDelCommand{Meta: meta}, nil
},
"commit": func() (cli.Command, error) {
meta.SubCmdName = c.Subcommand()
return &command.CommitCommand{Meta: meta}, nil