Browse Source

Clean up wf posts subcommand

- Remove description
- Fix usage (it only shows drafts)
- Remove --md flag (Markdown is always rendered on draft posts)
- Fix --verbose description
pull/45/head
Matt Baer 4 years ago
parent
commit
7fde5dd91b
1 changed files with 4 additions and 9 deletions
  1. +4
    -9
      cmd/wf/main.go

+ 4
- 9
cmd/wf/main.go View File

@@ -145,26 +145,21 @@ func main() {
},
},
{
Name: "posts",
Usage: "List all of your posts",
Description: "This will list only local posts.",
Action: requireAuth(commands.CmdListPosts, "view posts"),
Name: "posts",
Usage: "List draft posts",
Action: requireAuth(commands.CmdListPosts, "view posts"),
Flags: []cli.Flag{
cli.BoolFlag{
Name: "id",
Usage: "Show list with post IDs (default)",
},
cli.BoolFlag{
Name: "md",
Usage: "Use with --url to return URLs with Markdown enabled",
},
cli.BoolFlag{
Name: "url",
Usage: "Show list with URLs",
},
cli.BoolFlag{
Name: "verbose, v",
Usage: "Show verbose post listing, including Edit Tokens",
Usage: "Show verbose post listing",
},
},
}, {


Loading…
Cancel
Save