Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xsnippet-cli-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file xsnippet-cli-0.1.0.tar.gz.

File metadata

File hashes

Hashes for xsnippet-cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 31dccc3ca936a8e33dc74732449d38b644f0627d1cf602250c13ab6b39da5c67
MD5 d694d0ebd8cacf4ed53d6dd74772226b
BLAKE2b-256 a8a289c1348ea907acfc10d7804ec39ef4cbca39918648e936fa14f0aaed3602

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page