From a9a4079855bfcd45f882d7cd47e208a613952b2f Mon Sep 17 00:00:00 2001 From: R4SAS Date: Thu, 10 Feb 2022 22:29:31 +0300 Subject: [PATCH] update README Signed-off-by: R4SAS --- README.md | 58 +++++++++++++++++++++++----------------------- README.rst | 68 +++++++++++++++++++++++++++--------------------------- 2 files changed, 63 insertions(+), 63 deletions(-) diff --git a/README.md b/README.md index e706c9f..f3f9ce0 100644 --- a/README.md +++ b/README.md @@ -4,40 +4,40 @@ # PBinCLI -PBinCLI is command line client for [PrivateBin](https://github.com/PrivateBin/PrivateBin/) written on Python 3. +PBinCLI is a command line client for [PrivateBin](https://github.com/PrivateBin/PrivateBin/) written in Python 3. -# Installing +# Installation -Installation inside `virtualenv`: +Installing globally using pip3: ```bash -python3 -m virtualenv --python=python3 venv -. venv/bin/activate -pip install pbincli +pip3 install pbincli ``` -Installation to system with pip3: +Installing with `virtualenv`: ```bash -pip3 install pbincli +python3 -m virtualenv --python=python3 venv +. venv/bin/activate +pip install pbincli ``` -*Note*: if you used installation with `virtualenv`, don't forget to activate it before usage: call `. /path/to/venv/bin/activate` in terminal +*Note*: if you used `virtualenv` installation method, don't forget to activate your virtual environment before running the tool: call `. /path/to/venv/bin/activate` in terminal # Configuration -By default pbincli configured to use `https://paste.i2pd.xyz/` for sending and receiving pastes. No proxy used by default. +By default PBinCLI is configured to use `https://paste.i2pd.xyz/` for sending and receiving pastes. No proxy is used by default. -You can create config file to use different settings. +You can always create a config file to use different settings. -Configuration file is searched in `~/.config/pbincli/pbincli.conf`, `%APPDATA%/pbincli/pbincli.conf` (Windows) and `~/Library/Application Support/pbincli/pbincli.conf` (MacOS) +Configuration file is expected to be found in `~/.config/pbincli/pbincli.conf`, `%APPDATA%/pbincli/pbincli.conf` (Windows) and `~/Library/Application Support/pbincli/pbincli.conf` (MacOS) -## Example contents +## Example of config file content ```ini server=https://paste.i2pd.xyz/ proxy=http://127.0.0.1:3128 ``` -## All possible options for configuration file +## List of OPTIONS available | Option | Default | Possible value | |----------------------|-------------------------|----------------| @@ -60,7 +60,7 @@ proxy=http://127.0.0.1:3128 # Usage -Tool available by command `pbincli`, help for every command can be called with `-h` option: +PBinCLI tool is started with `pbincli` command. Detailed help on command usage is provided with `-h` option: ```bash pbincli {send|get|delete} -h ``` @@ -69,35 +69,35 @@ pbincli {send|get|delete} -h * Sending text: ```bash -pbincli send -t "Hello! This is test paste!" +pbincli send -t "Hello! This is a test paste!" ``` -* Use stdin input to read text for paste: +* Using stdin input to read text into a paste: ```bash pbincli send - <`_ written on Python 3. +PBinCLI is a command line client for `PrivateBin `_ written in Python 3. -Installing -========== +Installation +============ -Installation inside ``virtualenv``\ : +Installing globally using pip3: .. code-block:: bash - python3 -m virtualenv --python=python3 venv - . venv/bin/activate - pip install pbincli + pip3 install pbincli -Installation to system with pip3: +Installing with ``virtualenv``\ : .. code-block:: bash - pip3 install pbincli + python3 -m virtualenv --python=python3 venv + . venv/bin/activate + pip install pbincli -*Note*\ : if you used installation with ``virtualenv``\ , don't forget to activate it before usage: call ``. /path/to/venv/bin/activate`` in terminal +*Note*\ : if you used ``virtualenv`` installation method, don't forget to activate your virtual environment before running the tool: call ``. /path/to/venv/bin/activate`` in terminal Configuration ============= -By default pbincli configured to use ``https://paste.i2pd.xyz/`` for sending and receiving pastes. No proxy used by default. +By default PBinCLI is configured to use ``https://paste.i2pd.xyz/`` for sending and receiving pastes. No proxy is used by default. -You can create config file to use different settings. +You can always create a config file to use different settings. -Configuration file is searched in ``~/.config/pbincli/pbincli.conf``\ , ``%APPDATA%/pbincli/pbincli.conf`` (Windows) and ``~/Library/Application Support/pbincli/pbincli.conf`` (MacOS) +Configuration file is expected to be found in ``~/.config/pbincli/pbincli.conf``\ , ``%APPDATA%/pbincli/pbincli.conf`` (Windows) and ``~/Library/Application Support/pbincli/pbincli.conf`` (MacOS) -Example contents ----------------- +Example of config file content +------------------------------ .. code-block:: ini server=https://paste.i2pd.xyz/ proxy=http://127.0.0.1:3128 -All possible options for configuration file -------------------------------------------- +List of OPTIONS available +------------------------- .. list-table:: :header-rows: 1 @@ -118,7 +118,7 @@ All possible options for configuration file Usage ===== -Tool available by command ``pbincli``\ , help for every command can be called with ``-h`` option: +PBinCLI tool is started with ``pbincli`` command. Detailed help on command usage is provided with ``-h`` option: .. code-block:: bash @@ -133,26 +133,26 @@ Sending .. code-block:: bash - pbincli send -t "Hello! This is test paste!" + pbincli send -t "Hello! This is a test paste!" * - Use stdin input to read text for paste: + Using stdin input to read text into a paste: .. code-block:: bash pbincli send - <