Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A gist client in go

License

NotificationsYou must be signed in to change notification settings

MaximeD/gost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The gist client in go

Gost is a client for the gist API,it allows you to create and browse the gists ofhttps://gist.github.com/.

Installation

You can grab a binary for your platform on thereleases page.

Or else, you can install it from sources:

go get github.com/MaximeD/gost

Usage

Create gists

gost <files name>

You can supply as many files as you want here.

Full example:

gost -p -d "rocking the casbah" fun.go love_gist.rb

will create a private gist with description "rocking the casbah"with two filesfun.go andlove_gist.rb.The resulting url will be copy to your clipboard.

Command line options

Private gists

By default, your gists are public.If you want a private one, just add-p to your command.On first run,gost will create a prompt you for your credentialsand store a token in it's configuration file,so that you will have to do this step only once.

Description

To give your gist a description use-d <description>.

Open result in browser

To have your browser auto open on the url, use the flag-o.(It will rely onxdg-open).

Update gist

To update a gist:

gost -u <gist_id_or_url> <files name>

You can supply an optional-d flag to update the description of your gist.

gost -u <gist_id_or_url> -d <new description> <files name>

List gists

You can list the gist of a user with the following:

gost -l <username>

Download a gist

gost -g <gist_id_or_url>

Delete a gist

Given you have the id of one of your gist and the right to delete it, use-D flag:

gost -D <gist_id_or_url>

[8]ページ先頭

©2009-2025 Movatter.jp