aboutsummaryrefslogtreecommitdiffhomepage
path: root/commands/list.go
diff options
context:
space:
mode:
authorAnthony Fok <[email protected]>2015-08-04 03:15:12 -0600
committerAnthony Fok <[email protected]>2015-08-04 03:19:57 -0600
commitf2ab0b2608a1c4dc7109733be7eff80738ae9712 (patch)
treef7e62ec2544f4bf0b3417bc6aa5cdd967edc55cc /commands/list.go
parente64e571b679b429f547b38ebcb1f8aab8d785e7b (diff)
downloadhugo-f2ab0b2608a1c4dc7109733be7eff80738ae9712.tar.gz
hugo-f2ab0b2608a1c4dc7109733be7eff80738ae9712.zip
Improve formatting of Hugo command descriptions
Trying to make them look good both in the terminal (`hugo help [command]`) and in the web browser (http://gohugo.io/commands/). :-)
Diffstat (limited to 'commands/list.go')
-rw-r--r--commands/list.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/commands/list.go b/commands/list.go
index d3510420a..7499080b1 100644
--- a/commands/list.go
+++ b/commands/list.go
@@ -30,14 +30,16 @@ func init() {
var listCmd = &cobra.Command{
Use: "list",
Short: "Listing out various types of content",
- Long: `Listing out various types of content. List requires a subcommand, eg. hugo list drafts`,
+ Long: `Listing out various types of content.
+
+List requires a subcommand, e.g. ` + "`hugo list drafts`.",
Run: nil,
}
var listDraftsCmd = &cobra.Command{
Use: "drafts",
Short: "List all drafts",
- Long: `List all of the drafts in your content directory`,
+ Long: `List all of the drafts in your content directory.`,
Run: func(cmd *cobra.Command, args []string) {
InitializeConfig()
@@ -62,7 +64,8 @@ var listDraftsCmd = &cobra.Command{
var listFutureCmd = &cobra.Command{
Use: "future",
Short: "List all posts dated in the future",
- Long: `List all of the posts in your content directory who will be posted in the future`,
+ Long: `List all of the posts in your content directory which will be
+posted in the future.`,
Run: func(cmd *cobra.Command, args []string) {
InitializeConfig()