Fix CS
[shpub.git] / README.rst
index 8a5c087c83052616741e4446ec7db175cb04432f..1ac15c981a4272b41adf50525408640463571ca3 100644 (file)
@@ -114,6 +114,29 @@ URL image upload::
     Note created at server
     http://known.bogo/2016/img-url
 
+Load note content from a file::
+
+    $ ./bin/shpub.php note - < /path/to/file.txt
+    Note created at server
+    http://known.bogo/2017/some-note
+
+
+Custom post types
+=================
+You may create custom post types with the ``x`` command.
+This is useful if your micropub endpoint supports additional types,
+like known's ``annotation`` type (comments and likes for posts).
+
+Create a comment to a known post::
+
+    $ ./bin/shpub.php x annotation\
+        -x url=http://known.bogo/2016/example-domain-1\
+        -x type=reply\
+        -x username=barryf\
+        -x userurl=http://example.org/~barryf\
+        -x userphoto=http://example.org/~barryf/avatar.jpg\
+        -x content="There is a typo in paragraph 1. 'Fou' should be 'Foo'"
+
 
 ===============
 Delete/Undelete