collove / pasteme-cli

✍️ CLI Tool to Interact w/ PasteMe RESTful Service

Home Page:https://pypi.org/project/pasteme-cli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pasteme-cli Python Package

PasteMe is a RESTful pastebin service. Install this CLI tool and paste right from your command-line interface.

docs Documentation Status
tests

|

package
PyPI Package latest release PyPI Wheel Supported versions Supported implementations
Commits since latest release

Setup & Installation

Since PasteMe provides API endpoints, you can install the following Python package and paste your source codes and code snippets using your CLIs or Terminals.

$ pip install pasteme-cli

Usage

$ pasteme [OPTIONS] file.py
PASTE -> <URL>

To paste with the following attributes, run the command with the specified options and values.

title       ->  "Here is the Title" (default: Untitled)
line_start  ->  20 (default: First line)
line_end    ->  35 (defalut: Last line)
language    ->  C++ (default: PlainText)
expires at  ->  One month (default: One week)
$ pasteme --start 20 --end 35 --title "Here is the Title" --language cpp -x 1m program.cpp

You will have your 15 lines of code highlighted in C++ ready to share. Also visit the manual by typing $ pasteme --help and you have more hints on the options and arguments.

License

PasteMe is being licensed under the MIT License.

Special Thanks to

About

✍️ CLI Tool to Interact w/ PasteMe RESTful Service

https://pypi.org/project/pasteme-cli/

License:MIT License


Languages

Language:Python 100.0%