Skip to content

save file to github gist from terminal

License

Notifications You must be signed in to change notification settings

aerphanas/gist-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gist utils

Build-Test
gist on terminal

feature

  • get github gist list
  • create github gist (github token set GITHUB_GIST_TOKEN env)

compile

nimble build

run

 ./gist 
Copyright (c) 2023 by aerphanas

gist [Options]

Options:
  --public:GITHUB_USERNAME      show all public github gist item
  --uname:GITHUB_USERNAME       show all github gist item (need github token)
  --create:DESCRIPTION FILENAME create github gist with description and file (need github token)

list all public gist

./gist --public:aerphanas

list gist (need git token)

./gist --uname:aerphanas

create new gist (need git token)

./gist --create:<description> <file>