grym f315d76e46 | ||
---|---|---|
tests | ||
.gitignore | ||
.pre-commit-config.yaml | ||
Makefile | ||
README.org | ||
oxo.py | ||
pyproject.toml |
README.org
0x0 uploader
This is a very lightweight front-end to the 0x0 pastebin service for slightly easier command line use.
Installation
pipx
pipx install git+https://tildegit.org/grym/oxo@master # or @tag-of-your-choice
pip
python3 -m venv oxovenv
oxovenv/bin/pip install git+https://tildegit.org/grym/oxo@master # or @tag-of-your-choice
ln -s oxovenv/bin/oxo ${HOME}/.local/bin # optional.
development
git clone https://tildegit.org/grym/oxo
cd oxo
make install
Use
Each of the three endpoints supported by 0x0 has an associated subcommand.
./venv/bin/oxo --help
Usage: oxo [OPTIONS] COMMAND [ARGS]... A command line utility for 0x0.st compliant pastebins. To use a different 0x0 site, set `OXO_BASE_URL` in your environment, or specify it in the relevant subcommand. ╭─ Options ────────────────────────────────────────────────────────────────────╮ │ --version Show the version and exit. │ │ --install-completion Install completion for the current shell. │ │ --show-completion Show completion for the current shell, to copy │ │ it or customize the installation. │ │ --help Show this message and exit. │ ╰──────────────────────────────────────────────────────────────────────────────╯ ╭─ Commands ───────────────────────────────────────────────────────────────────╮ │ files Upload one or more files. │ │ repost Repost one or more urls. │ │ shorten Shorten one or more urls. │ ╰──────────────────────────────────────────────────────────────────────────────╯