Command line to upload and update your gist files.
Project description
GIST
Command line program to upload or change/update github gists. In order to work this program needs an authorization token.
Go to https://github.com/settings/tokens to create a token. The token can then
be stored into the file ~/.local/gist_token.
Example
Upload a python program with his readme file:
% gist new -f gist.py README.md -d "Upload or update github gists."
Gist ID: c7dfade18834d095a2b2168d35234ae0
Gist URL: https://gist.github.com/0x9900/c7dfade18834d095a2b2168d35234ae0
Update the README file from and existing gist:
% gist update -f README.md --gist-id c7dfade18834d095a2b2168d35234ae0
Gist ID: c7dfade18834d095a2b2168d35234ae0
Gist URL: https://gist.github.com/0x9900/c7dfade18834d095a2b2168d35234ae0
Help:
usage: gist.py [-h] {new,update,list} ...
gist.py: error: the following arguments are required: {new,update,list}
% gist new --help
usage: gist new [-h] [-f FILE [FILE ...]] [-d DESCRIPTION] [-p]
options:
-h, --help show this help message and exit
-f FILE [FILE ...], --file FILE [FILE ...]
-d DESCRIPTION, --description DESCRIPTION
-p, --public
% gist update --help
usage: gist update [-h] -i GIST_ID [-f FILE]
options:
-h, --help show this help message and exit
-i GIST_ID, --gist-id GIST_ID
-f FILE, --file FILE
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cli_gist-0.1.1.tar.gz.
File metadata
- Download URL: cli_gist-0.1.1.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b11072afe6fdc850f8a9de6b797ed7b9161cdd12f27258344650a4160f7e6cbb
|
|
| MD5 |
f18c797dd64c95efa89b97e01e2bd7af
|
|
| BLAKE2b-256 |
d4d719d8228d2ce8e4478219ddce5744ff06923490051ecd434ef27e9dbb86e8
|
File details
Details for the file cli_gist-0.1.1-py3-none-any.whl.
File metadata
- Download URL: cli_gist-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b03da5fec2b5bb894bc323d13440520f9f4b01058279fbd96e8d6509fb9de35
|
|
| MD5 |
5e8bfd7dda6c4f86378c7b759b4c2d8a
|
|
| BLAKE2b-256 |
a01a209aa1c70d7c4daea2a26baee6b487efab6f90feda330cca654d24aafda8
|