1
0
mirror of https://github.com/directorz/mailfull-go.git synced 2025-12-17 09:37:02 +00:00

Change synopsis and help message

This commit is contained in:
teru
2016-08-11 13:24:01 +09:00
parent bb0e30ac18
commit 42d4e6389a
3 changed files with 11 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ type CommitCommand struct {
// Synopsis returns a one-line synopsis.
func (c *CommitCommand) Synopsis() string {
return "Create a database from the structure of the MailData directory."
return "Create databases from the structure of the MailData directory."
}
// Help returns long-form help text.
@@ -23,9 +23,10 @@ Usage:
%s %s
Description:
Create a database from the structure of the MailData directory.
%s
`,
c.CmdName, c.SubCmdName)
c.CmdName, c.SubCmdName,
c.Synopsis())
return txt[1:]
}

View File

@@ -14,7 +14,7 @@ type DomainListCommand struct {
// Synopsis returns a one-line synopsis.
func (c *DomainListCommand) Synopsis() string {
return "Show all domains."
return "Show domains."
}
// Help returns long-form help text.
@@ -24,9 +24,10 @@ Usage:
%s %s
Description:
Show all domains.
%s
`,
c.CmdName, c.SubCmdName)
c.CmdName, c.SubCmdName,
c.Synopsis())
return txt[1:]
}
@@ -44,7 +45,6 @@ func (c *DomainListCommand) Run(args []string) int {
fmt.Fprintf(c.UI.ErrorWriter, "[ERR] %v\n", err)
return 1
}
sort.Sort(mailfull.DomainSlice(domains))
for _, domain := range domains {

View File

@@ -23,9 +23,10 @@ Usage:
%s %s
Description:
Initializes current directory as a Mailfull repository.
%s
`,
c.CmdName, c.SubCmdName)
c.CmdName, c.SubCmdName,
c.Synopsis())
return txt[1:]
}