Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Set description from CLI (for issue #73) #74

wants to merge 3 commits into


None yet
3 participants

ghost commented Jan 6, 2012

Just uses a -d/--description flag.

$ ./gist -h
Usage: gist [options] [filename or stdin] [filename] ...
Filename '-' forces gist to read from stdin.
-p, --[no-]private Make the gist private
-d, --description [DESCRIPTION] Set the description of gist
-t, --type [EXTENSION] Set syntax highlighting of the Gist by file extension
-o, --[no-]open Open gist in browser
-m, --man Print manual
-v, --version Print version
-h, --help Display this screen
-c, --[no-]copy Copy gist URL to clipboard automatically

Awesome, just what I was looking for.

Manually tested the CLI with and without -d, gists created as expected. 🍰 and 🍺 for you.

Bonus 🌠 for test cases.

Also, passing files via command-line seemed to break, might be unrelated: 'Creating gist failed: 200 OK'.

ainformatico and others added some commits Mar 4, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment