Update documentation
authorMikael Berthe <mikael@lilotux.net>
Fri, 28 Apr 2017 11:38:54 +0200
changeset 17 ab1aa9652791
parent 16 8939959991b3
child 18 7a4b57b3e66a
Update documentation
README.md
cmd/toot.go
--- a/README.md	Tue Apr 25 00:05:21 2017 +0200
+++ b/README.md	Fri Apr 28 11:38:54 2017 +0200
@@ -62,6 +62,11 @@
 % madonctl post --file image.jpg Selfie # Send a media file
 ```
 
+Send (text) file content as new message:
+```
+% madonctl toot --text-file message.txt
+```
+
 Some account-related commands:
 ``` sh
 % madonctl accounts blocked                       # List blocked accounts
--- a/cmd/toot.go	Tue Apr 25 00:05:21 2017 +0200
+++ b/cmd/toot.go	Fri Apr 28 11:38:54 2017 +0200
@@ -35,7 +35,7 @@
   madonctl toot --spoiler Warning "Hello, World"
   madonctl status post --media-ids ID1,ID2 "Here are the photos"
   madonctl post --sensitive --file image.jpg Image
-  madonctl post --text-file message.txt`,
+  madonctl toot --text-file message.txt`,
 	RunE: func(cmd *cobra.Command, args []string) error {
 		if err := madonInit(true); err != nil {
 			return err