File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed
Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,11 @@ writeas [global options] command [command options] [arguments...]
1313
1414COMMANDS:
1515 post Alias for default action: create post from stdin
16+ new Compose a new post from the command-line and publish
1617 delete Delete a post
1718 update Update (overwrite) a post
1819 get Read a raw post
19- add Add a post locally
20+ add Add an existing post locally
2021 list List local posts
2122 help, h Shows a list of commands or help for one command
2223
Original file line number Diff line number Diff line change @@ -72,8 +72,17 @@ func main() {
7272 },
7373 },
7474 {
75- Name : "new" ,
76- Usage : "Create a new post with your default text editor and publish" ,
75+ Name : "new" ,
76+ Usage : "Compose a new post from the command-line and publish" ,
77+ Description : `An alternative to piping data to the program.
78+
79+ On Windows, this will use 'copy con' to start reading what you input from the
80+ prompt. Press F6 or Ctrl-Z then Enter to end input.
81+ On *nix, this will use the best available text editor, starting with the
82+ value set to the EDITOR environment variable, or vim, or finally nano.
83+
84+ If posting fails for any reason, 'writeas' will show you the temporary file
85+ location and how to pipe it to 'writeas' to retry.` ,
7786 Action : cmdNew ,
7887 Flags : []cli.Flag {
7988 cli.BoolFlag {
@@ -136,8 +145,13 @@ func main() {
136145 },
137146 },
138147 {
139- Name : "add" ,
140- Usage : "Add a post locally" ,
148+ Name : "add" ,
149+ Usage : "Add an existing post locally" ,
150+ Description : `A way to add an existing post to your local store for easy editing later.
151+
152+ This requires a post ID (from https://write.as/[ID]) and an Edit Token
153+ (exported from another Write.as client, such as the Android app).
154+ ` ,
141155 Action : cmdAdd ,
142156 },
143157 {
You can’t perform that action at this time.
0 commit comments