From 29e0af1a05934ce5c53442fe5fe3d17f61ce4fc3 Mon Sep 17 00:00:00 2001 From: r4sas Date: Sat, 22 Sep 2018 01:33:21 +0300 Subject: [PATCH] update readme --- README.md | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8e103f5..5af5135 100644 --- a/README.md +++ b/README.md @@ -8,40 +8,52 @@ Installing ```bash $ virtualenv --python=python3 venv $ . venv/bin/activate -$ pip install -r requirements.txt +$ pip install pbincli ``` Usage ----- -Edit variables `server`, `proxies` and `useproxy` in `pbincli/settings.py` to your values. +By default pbincli configured to use https://paste.i2pd.xyz/ for sending and receiving pastes. No proxy used by default. + +You can create config file with variables `server` and `proxy` in `~/.config/pbincli/pbincli.conf` to use different settings. + +Example contents: + +``` +server=https://paste.i2pd.xyz/ +proxy=http://127.0.0.1:3128 +``` Run inside `venv` command: - $ ./cli send --text "Hello!" + $ pbincli send --text "Hello!" Or use stdin input to read text for paste: - $ ./cli send - <