File: gcli-gists.1.in

package info (click to toggle)
gcli 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,096 kB
  • sloc: ansic: 19,013; makefile: 312; yacc: 261; sh: 142; lex: 53
file content (107 lines) | stat: -rw-r--r-- 2,601 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.Dd @PACKAGE_DATE@
.Dt GCLI-GISTS 1
.Os @PACKAGE_STRING@
.Sh NAME
.Nm gcli gists
.Nd manage Github Gists
.Sh SYNOPSIS
.Nm
.Op Fl s
.Op Fl l
.Op Fl n Ar n
.Op Fl u Ar user
.Nm
.Cm create
.Op Fl d Ar description
.Op Fl f Pa path
.Ar gist-file-name
.Nm
.Cm delete
.Op Fl y
.Ar gist-id
.Nm
.Cm get
.Ar gist-id
.Ar file-name
.Sh DESCRIPTION
Use
.Nm
to list, create, download or delete Github Gists.
Without a subcommand specified,
.Nm
will list Gists of the given or autodetected user account.
.Sh OPTIONS
.Bl -tag -width indent
.It Fl l , -long
Print a long list instead of a short table.
.It Fl s , -sorted
Reverse the output such that most recent items appear at the bottom.
.It Fl u , -user Ar owner
List Gists of the given user.
.It Fl n , -count Ar n
Fetch at least
.Ar n
gists. Setting
.Ar n
to -1 will fetch all gists. Default: 30. Note that on users with many
gists fetching all gists can take a considerable amount of time and
may result in rate limiting by the GitHub API.
.El
.Sh SUBCOMMANDS
.Bl -tag -width indent
.It Cm create
Paste a new Gist. The following flags can be specified:
.Bl -tag -width indent
.It Fl f , -file Pa file
Read the content from the specified file instead of standard input.
.It Fl d , -description Ar description
The description of the Gist to be created.
.El
.It Cm delete
Delete a Gist. The following options can be specified:
.Bl -tag -width indent
.It Fl y , -yes
Do not ask for confirmation before deleting the Gist. Assume yes.
.El
.It Cm get
Download a file from a Gist. There are no options to this subcommand.
.El
.Sh EXAMPLES
List neutaaaaan's Gists:
.Bd -literal -offset indent
$ gcli gists -u neutaaaaan
.Ed
.Pp
Paste a new gist named foobar and read from foobar.txt:
.Bd -literal -offset indent
$ gcli gists create foobar < foobar.txt
.Ed
.Pp
Delete gist with id 3b546069d2856e6051bbe3c1080f1b5d:
.Bd -literal -offset indent
$ gcli gists delete 3b546069d2856e6051bbe3c1080f1b5d
.Ed
.Pp
Print foobar.txt from Gist with id 3b546069d2856e6051bbe3c1080f1b5d
into your pager:
.Bd -literal -offset indent
$ gcli gists get 3b546069d2856e6051bbe3c1080f1b5d foobar.txt | $PAGER
.Ed
.Pp
.Sh SEE ALSO
.Xr git 1 ,
.Xr gcli 1
.Sh AUTHORS
.An Nico Sonack aka. herrhotzenplotz Aq Mt nsonack@herrhotzenplotz.de
and contributors.
.Sh BUGS
This subcommand only works on GitHub. It is not implemented for
GitLab, as GitLab snippets work differently.
.Pp
Please report bugs via E-Mail to
.Mt @PACKAGE_BUGREPORT@ .
.Pp
Alternatively you can report them on any of the forges linked at
.Lk @PACKAGE_URL@ .
However, the preferred and quickest method is to use the mailing
list.