|
@@ -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{ |
|
|
Flags: []cli.Flag{ |
|
|
cli.BoolFlag{ |
|
|
cli.BoolFlag{ |
|
|
Name: "id", |
|
|
Name: "id", |
|
|
Usage: "Show list with post IDs (default)", |
|
|
Usage: "Show list with post IDs (default)", |
|
|
}, |
|
|
}, |
|
|
cli.BoolFlag{ |
|
|
cli.BoolFlag{ |
|
|
Name: "md", |
|
|
|
|
|
Usage: "Use with --url to return URLs with Markdown enabled", |
|
|
|
|
|
}, |
|
|
|
|
|
cli.BoolFlag{ |
|
|
|
|
|
Name: "url", |
|
|
Name: "url", |
|
|
Usage: "Show list with URLs", |
|
|
Usage: "Show list with URLs", |
|
|
}, |
|
|
}, |
|
|
cli.BoolFlag{ |
|
|
cli.BoolFlag{ |
|
|
Name: "verbose, v", |
|
|
Name: "verbose, v", |
|
|
Usage: "Show verbose post listing, including Edit Tokens", |
|
|
|
|
|
|
|
|
Usage: "Show verbose post listing", |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, { |
|
|
}, { |
|
|