mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
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/). :-)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user