@@ -119,25 +119,25 @@ In order to ease automation, creation and listing commands will typically print
119
119
out the identifier of the relevant snippet(s) on the standard out, so this
120
120
information can be used in further commands.
121
121
122
- ## ` list `
122
+ #### ` list `
123
123
124
124
This is the default command, i.e. it is what runs when snippet is called without
125
125
any command specification. The command prints out the identifiers of the
126
126
snippets accessible by the token at the project on the standard out.
127
127
128
- ## ` get ` or ` read `
128
+ #### ` get ` or ` read `
129
129
130
130
This command takes the identifier of an existing snippet as an argument and will
131
131
print out its raw content on the standard out.
132
132
133
- ## ` details `
133
+ #### ` details `
134
134
135
135
This command takes the identifier of an existing snippet and prints out the
136
136
parsed JSON output of the gitlab snippet description. When passed the ` --json `
137
137
flag, the command will, instead print out the unparsed entire gitlab snippet
138
138
description.
139
139
140
- ## ` create ` or ` add `
140
+ #### ` create ` or ` add `
141
141
142
142
This command will create a snippet and return its identifier. On error, it will
143
143
log the error at the ` error ` level. It takes a number of options, most of them
@@ -153,13 +153,13 @@ being mandatory:
153
153
+ ` --content-file ` is file containing the content of the snippet. One of
154
154
` --content-file ` or ` --content ` must be present.
155
155
156
- ## ` update ` or ` change `
156
+ #### ` update ` or ` change `
157
157
158
158
This command takes the same options as the ` create ` command and, in addition,
159
159
the identifier of an existing snippet. It will modify the snippet and return its
160
160
identifier on success.
161
161
162
- ## ` delete ` or ` remove `
162
+ #### ` delete ` or ` remove `
163
163
164
164
This command takes the identifier of a snippet and removes it.
165
165
0 commit comments