mirror of
https://github.com/directorz/mailfull-go.git
synced 2025-12-18 18:17:03 +00:00
Change synopsis and help message
This commit is contained in:
@@ -13,7 +13,7 @@ type CommitCommand struct {
|
|||||||
|
|
||||||
// Synopsis returns a one-line synopsis.
|
// Synopsis returns a one-line synopsis.
|
||||||
func (c *CommitCommand) Synopsis() string {
|
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.
|
// Help returns long-form help text.
|
||||||
@@ -23,9 +23,10 @@ Usage:
|
|||||||
%s %s
|
%s %s
|
||||||
|
|
||||||
Description:
|
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:]
|
return txt[1:]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ type DomainListCommand struct {
|
|||||||
|
|
||||||
// Synopsis returns a one-line synopsis.
|
// Synopsis returns a one-line synopsis.
|
||||||
func (c *DomainListCommand) Synopsis() string {
|
func (c *DomainListCommand) Synopsis() string {
|
||||||
return "Show all domains."
|
return "Show domains."
|
||||||
}
|
}
|
||||||
|
|
||||||
// Help returns long-form help text.
|
// Help returns long-form help text.
|
||||||
@@ -24,9 +24,10 @@ Usage:
|
|||||||
%s %s
|
%s %s
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
Show all domains.
|
%s
|
||||||
`,
|
`,
|
||||||
c.CmdName, c.SubCmdName)
|
c.CmdName, c.SubCmdName,
|
||||||
|
c.Synopsis())
|
||||||
|
|
||||||
return txt[1:]
|
return txt[1:]
|
||||||
}
|
}
|
||||||
@@ -44,7 +45,6 @@ func (c *DomainListCommand) Run(args []string) int {
|
|||||||
fmt.Fprintf(c.UI.ErrorWriter, "[ERR] %v\n", err)
|
fmt.Fprintf(c.UI.ErrorWriter, "[ERR] %v\n", err)
|
||||||
return 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
sort.Sort(mailfull.DomainSlice(domains))
|
sort.Sort(mailfull.DomainSlice(domains))
|
||||||
|
|
||||||
for _, domain := range domains {
|
for _, domain := range domains {
|
||||||
|
|||||||
@@ -23,9 +23,10 @@ Usage:
|
|||||||
%s %s
|
%s %s
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
Initializes current directory as a Mailfull repository.
|
%s
|
||||||
`,
|
`,
|
||||||
c.CmdName, c.SubCmdName)
|
c.CmdName, c.SubCmdName,
|
||||||
|
c.Synopsis())
|
||||||
|
|
||||||
return txt[1:]
|
return txt[1:]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user