Browse Source

update readme

Signed-off-by: R4SAS <r4sas@i2pmail.org>
master
R4SAS 1 year ago
parent
commit
d8f3c44371
Signed by untrusted user: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 9
      README.md
  2. 9
      README.rst

9
README.md

@ -99,15 +99,16 @@ To retrieve a paste from a server, you need to use `get` command with the paste @@ -99,15 +99,16 @@ To retrieve a paste from a server, you need to use `get` command with the paste
Paste info must be formated as `pasteID#Passphrase` or just use full URL to a paste. Example:
```bash
pbincli get xxx#yyy ### receive paste xxx from https://paste.i2pd.xyz/ by default
pbincli get https://example.com/?xxx#yyy ### receive paste xxx from https://example.com/
pbincli get "xxx#yyy" ### receive paste xxx from https://paste.i2pd.xyz/ by default
pbincli get "https://example.com/?xxx#yyy" ### receive paste xxx from https://example.com/
```
## Deletion
To delete a paste from a server, use `delete` command with required `-p` and `-t` options:
To delete a paste from a server, use `delete` command with paste info:
```bash
pbincli delete -p xxx -t deletetoken
pbincli delete "pasteid=xxx&deletetoken=yyy" ### delete paste xxx from https://paste.i2pd.xyz/ by default
pbincli delete "https://example.com/?pasteid=xxx&deletetoken=yyy" ### delete paste xxx from https://example.com/
```
If you need to delete a paste on different server than the configured one, use `-s` option together with the instance URL.

9
README.rst

@ -172,17 +172,18 @@ Paste info must be formated as ``pasteID#Passphrase`` or just use full URL to a @@ -172,17 +172,18 @@ Paste info must be formated as ``pasteID#Passphrase`` or just use full URL to a
.. code-block:: bash
pbincli get xxx#yyy ### receive paste xxx from https://paste.i2pd.xyz/ by default
pbincli get https://example.com/?xxx#yyy ### receive paste xxx from https://example.com/
pbincli get "xxx#yyy" ### receive paste xxx from https://paste.i2pd.xyz/ by default
pbincli get "https://example.com/?xxx#yyy" ### receive paste xxx from https://example.com/
Deletion
--------
To delete a paste from a server, use ``delete`` command with required ``-p`` and ``-t`` options:
To delete a paste from a server, use ``delete`` command with paste info:
.. code-block:: bash
pbincli delete -p xxx -t deletetoken
pbincli delete "pasteid=xxx&deletetoken=yyy" ### delete paste xxx from https://paste.i2pd.xyz/ by default
pbincli delete "https://example.com/?pasteid=xxx&deletetoken=yyy" ### delete paste xxx from https://example.com/
If you need to delete a paste on different server than the configured one, use ``-s`` option together with the instance URL.

Loading…
Cancel
Save