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...]
13
13
14
14
COMMANDS:
15
15
post Alias for default action: create post from stdin
16
+ new Compose a new post from the command-line and publish
16
17
delete Delete a post
17
18
update Update (overwrite) a post
18
19
get Read a raw post
19
- add Add a post locally
20
+ add Add an existing post locally
20
21
list List local posts
21
22
help, h Shows a list of commands or help for one command
22
23
Original file line number Diff line number Diff line change @@ -72,8 +72,17 @@ func main() {
72
72
},
73
73
},
74
74
{
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.` ,
77
86
Action : cmdNew ,
78
87
Flags : []cli.Flag {
79
88
cli.BoolFlag {
@@ -136,8 +145,13 @@ func main() {
136
145
},
137
146
},
138
147
{
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
+ ` ,
141
155
Action : cmdAdd ,
142
156
},
143
157
{
You can’t perform that action at this time.
0 commit comments