A simple command line interface for the XSnippet service.
Project description
xsnippet-cli is a simple command line interface for interacting with xsnippet service. By means this script, you can easily post and receive snippets directly from your terminal.
Usage
It’s very easy to use. You can paste the snippet this way
$ xsnippet /path/to/file
or this way
$ cat /path/to/file | xsnippet
As you can see the last method posts a some command output. It’s very usefull to post the last few lines from logfile this way
$ tail -n 5 nginx.log | xsnippet
It’s important to note that you can specify a snippet language or tags. Thats can be done by the following command
$ cat setup.py | xsnippet -l python -t setuptools test
Installation
$ pip install xsnippet-cli
or
$ easy_install xsnippet-cli
or
$ wget http://git.io/xsnippet-cli.zip -O xsnippet-cli.zip $ unzip xsnippet-cli.zip && cd xsnippet-cli-master $ (sudo) python ./setup.py install
Meta
Author: Igor Kalnitsky <igor@kalnitsky.org>
License: BSD License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file xsnippet-cli-0.1.1.tar.gz
.
File metadata
- Download URL: xsnippet-cli-0.1.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be5db908f08b91032c96e6ece203f79ae10258c0810533d50798454ad6e2a5eb |
|
MD5 | ffbbbca5609d2b56a3e4f98f01ad46e3 |
|
BLAKE2b-256 | ca50d134635345721708d15b87b019108adb0ef7833418d1819fd894c9f1b42f |