GCLI-GISTS(1) | General Commands Manual | GCLI-GISTS(1) |
gcli gists
—
manage Github Gists
gcli gists |
[-s ] [-l ]
[-n n]
[-u user] |
gcli gists |
create [-d
description] [-f
path] gist-file-name |
gcli gists |
delete [-y ]
gist-id |
gcli gists |
get gist-id
file-name |
Use gcli gists
to list, create, download
or delete Github Gists. Without a subcommand specified,
gcli gists
will list Gists of the given or
autodetected user account.
-l
,
--long
-s
,
--sorted
-u
,
--user
owner-n
,
--count
nList neutaaaaan's Gists:
$ gcli gists -u neutaaaaan
Paste a new gist named foobar and read from foobar.txt:
$ gcli gists create foobar < foobar.txt
Delete gist with id 3b546069d2856e6051bbe3c1080f1b5d:
$ gcli gists delete 3b546069d2856e6051bbe3c1080f1b5d
Print foobar.txt from Gist with id 3b546069d2856e6051bbe3c1080f1b5d into your pager:
$ gcli gists get 3b546069d2856e6051bbe3c1080f1b5d foobar.txt | $PAGER
Nico Sonack aka. herrhotzenplotz <nsonack@herrhotzenplotz.de> and contributors.
This subcommand only works on GitHub. It is not implemented for GitLab, as GitLab snippets work differently.
Please report bugs via E-Mail to ~herrhotzenplotz/gcli-discuss@lists.sr.ht.
Alternatively you can report them on any of the forges linked at https://herrhotzenplotz.de/gcli. However, the preferred and quickest method is to use the mailing list.
2024-Feb-05 | gcli 2.2.0 |