bitbucket-snippet
A command-line tool for creating snippets via the Bitbucket REST API.
Last updated a year ago by tpettersen .
Apache-2.0 · Repository · Original npm · Tarball
$ cnpm install bitbucket-snippet 
SYNC missed versions from official npm registry.

Bitbucket Snippet

CLI tool for publishing a local file as a Bitbucket Snippet.

You may enjoy this article on how this tool was built.

Usage

 snippet [options] <file>

 Options:

    -h, --help                 output usage information
    -u, --username <username>  the user to authenticate as
    -p, --password <password>  the user's password
    -b, --browser              open the snippet in the system browser

Installation

  • Install Node.js and npm
  • Run npm install -g bitbucket-snippet
  • Run snippet --help or snippet some_file to upload it to Bitbucket.

Credential management

The first time you upload a file you will be prompted for your Bitbucket username and password. These will be used to retrieve an OAuth refresh token which is stored in ~/.bitbucket-snippet and used for subsequent requests. Treat this token carefully as it can be used to read and write snippets on your behalf.

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 7
Dependencies (9)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |