Git Product home page Git Product logo

gistor's Introduction

gistor

A simple CLI tool which could let you manage gist easily.

Usage

Install gistor using npm

npm install -g gistor

First setup your authorization information.

gistor --login --user {USERNAME} --pass {PASSWORD}

It will call github Authorization and create new one. If it success, will save return value to .gistor in your home directory. Then you can start using gistor to manage your gist right now!

create

gistor --create [--desc] {DESC} [files...]

Create a gist contains the files you given. You can also write the description using --desc.

update

gistor --update [gist-id] -e

Use -e will open your default editor and load your file automatically. Edit it and save it then gistor will update your file to gist.

delete

gistor --remove [gist-id]

Delete the specific gist based on specific id.

list

gistor --list

It will list your gist, including Id and description. (Id is necessary in following action)

search

gistor --search [keyword]

Search gist by keyword. Cause Github did not provide search API, parse the serach page right now. It will return the first 10 results just as gist searching page. The display format will just like follow:

=====
Author - Gist Name
Gist link
-----
File Content

folk

gistor --folk [gist-id]

Folk the target gist, also return the url of your folk gist.

get

gistor --get [gist-url || gist-id] [--file FILENAME]

Download target gist to current location, gistor will use filename as default, but you can replace with a new filename, using --file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.