5
5
< meta name ="generator " content ="pandoc " />
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0, user-scalable=yes " />
7
7
< meta name ="author " content ="Nicolas Bedos " />
8
- < title > CISTERN(1) | version 0.2.0dev0-6-gb627dab-dirty -linux-amd64</ title >
8
+ < title > CISTERN(1) | version 0.2.0dev0-23-g9a477eb -linux-amd64</ title >
9
9
< style >
10
10
code {white-space : pre-wrap;}
11
11
span .smallcaps {font-variant : small-caps;}
19
19
</ head >
20
20
< body >
21
21
< header id ="title-block-header ">
22
- < h1 class ="title "> CISTERN(1) | version 0.2.0dev0-6-gb627dab-dirty -linux-amd64</ h1 >
22
+ < h1 class ="title "> CISTERN(1) | version 0.2.0dev0-23-g9a477eb -linux-amd64</ h1 >
23
23
< p class ="author "> Nicolas Bedos</ p >
24
24
</ header >
25
25
< h1 id ="name "> NAME</ h1 >
@@ -118,6 +118,25 @@ <h2 id="h---help"><code>-h, --help</code></h2>
118
118
< p > Show usage of cistern</ p >
119
119
< h2 id ="version "> < code > --version</ code > </ h2 >
120
120
< p > Print the version of cistern being run</ p >
121
+ < h1 id ="columns "> COLUMNS</ h1 >
122
+ < h2 id ="ref "> REF</ h2 >
123
+ < p > Tag or branch associated to the pipeline</ p >
124
+ < h2 id ="pipeline "> PIPELINE</ h2 >
125
+ < p > Identifier of the pipeline</ p >
126
+ < h2 id ="type "> TYPE</ h2 >
127
+ < p > Either “P” (Pipeline), “S” (Stage), “J” (Job) or “T” (Task)</ p >
128
+ < h2 id ="state "> STATE</ h2 >
129
+ < p > State of the pipeline</ p >
130
+ < h2 id ="xfail "> XFAIL</ h2 >
131
+ < p > Expected failure. Boolean indicating whether this step is allowed to fail without impacting the overall state of the pipeline</ p >
132
+ < h2 id ="created-started-finished "> CREATED, STARTED, FINISHED</ h2 >
133
+ < p > Date when the pipeline was created, started or finished</ p >
134
+ < h2 id ="duration "> DURATION</ h2 >
135
+ < p > Time it took for the pipeline to finish</ p >
136
+ < h2 id ="name-1 "> NAME</ h2 >
137
+ < p > Name of the provider followed by the name of the pipeline, if any</ p >
138
+ < h2 id ="url "> URL</ h2 >
139
+ < p > URL of the step on the website of the provider</ p >
121
140
< h1 id ="interactive-commands "> INTERACTIVE COMMANDS</ h1 >
122
141
< p > Below are the default commands for interacting with cistern.</ p >
123
142
< table style ="width:82%; ">
@@ -141,6 +160,14 @@ <h1 id="interactive-commands">INTERACTIVE COMMANDS</h1>
141
160
< td style ="text-align: left; "> Move cursor down by one line</ td >
142
161
</ tr >
143
162
< tr class ="odd ">
163
+ < td style ="text-align: left; "> Right, l</ td >
164
+ < td style ="text-align: left; "> Scroll right</ td >
165
+ </ tr >
166
+ < tr class ="even ">
167
+ < td style ="text-align: left; "> Left, h</ td >
168
+ < td style ="text-align: left; "> Scroll left</ td >
169
+ </ tr >
170
+ < tr class ="odd ">
144
171
< td style ="text-align: left; "> Page Up</ td >
145
172
< td style ="text-align: left; "> Move cursor up by one screen</ td >
146
173
</ tr >
@@ -149,50 +176,62 @@ <h1 id="interactive-commands">INTERACTIVE COMMANDS</h1>
149
176
< td style ="text-align: left; "> Move cursor down by one screen</ td >
150
177
</ tr >
151
178
< tr class ="odd ">
179
+ < td style ="text-align: left; "> <</ td >
180
+ < td style ="text-align: left; "> Move sort column left</ td >
181
+ </ tr >
182
+ < tr class ="even ">
183
+ < td style ="text-align: left; "> ></ td >
184
+ < td style ="text-align: left; "> Move sort column right</ td >
185
+ </ tr >
186
+ < tr class ="odd ">
187
+ < td style ="text-align: left; "> !</ td >
188
+ < td style ="text-align: left; "> Reverse sort order</ td >
189
+ </ tr >
190
+ < tr class ="even ">
152
191
< td style ="text-align: left; "> o, +</ td >
153
192
< td style ="text-align: left; "> Open the fold at the cursor</ td >
154
193
</ tr >
155
- < tr class ="even ">
194
+ < tr class ="odd ">
156
195
< td style ="text-align: left; "> O</ td >
157
196
< td style ="text-align: left; "> Open the fold at the cursor and all sub-folds</ td >
158
197
</ tr >
159
- < tr class ="odd ">
198
+ < tr class ="even ">
160
199
< td style ="text-align: left; "> c, -</ td >
161
200
< td style ="text-align: left; "> Close the fold at the cursor</ td >
162
201
</ tr >
163
- < tr class ="even ">
202
+ < tr class ="odd ">
164
203
< td style ="text-align: left; "> C</ td >
165
204
< td style ="text-align: left; "> Close the fold at the cursor and all sub-folds</ td >
166
205
</ tr >
167
- < tr class ="odd ">
206
+ < tr class ="even ">
168
207
< td style ="text-align: left; "> /</ td >
169
208
< td style ="text-align: left; "> Open search prompt</ td >
170
209
</ tr >
171
- < tr class ="even ">
210
+ < tr class ="odd ">
172
211
< td style ="text-align: left; "> Escape</ td >
173
212
< td style ="text-align: left; "> Close search prompt</ td >
174
213
</ tr >
175
- < tr class ="odd ">
214
+ < tr class ="even ">
176
215
< td style ="text-align: left; "> Enter, n</ td >
177
216
< td style ="text-align: left; "> Move to the next match</ td >
178
217
</ tr >
179
- < tr class ="even ">
218
+ < tr class ="odd ">
180
219
< td style ="text-align: left; "> N</ td >
181
220
< td style ="text-align: left; "> Move to the previous match</ td >
182
221
</ tr >
183
- < tr class ="odd ">
222
+ < tr class ="even ">
184
223
< td style ="text-align: left; "> v</ td >
185
224
< td style ="text-align: left; "> View the log of the job at the cursor< sup > [a]</ sup > </ td >
186
225
</ tr >
187
- < tr class ="even ">
226
+ < tr class ="odd ">
188
227
< td style ="text-align: left; "> b</ td >
189
228
< td style ="text-align: left; "> Open with default web browser</ td >
190
229
</ tr >
191
- < tr class ="odd ">
230
+ < tr class ="even ">
192
231
< td style ="text-align: left; "> q</ td >
193
232
< td style ="text-align: left; "> Quit</ td >
194
233
</ tr >
195
- < tr class ="even ">
234
+ < tr class ="odd ">
196
235
< td style ="text-align: left; "> ?</ td >
197
236
< td style ="text-align: left; "> View manual page</ td >
198
237
</ tr >
@@ -210,86 +249,70 @@ <h2 id="location">Location</h2>
210
249
</ ol >
211
250
< p > If < code > XDG_CONFIG_HOME</ code > (resp. < code > XDG_CONFIG_DIRS</ code > ) is not set, cistern uses the default value < code > "$HOME/.config"</ code > (resp. < code > "/etc/xdg"</ code > ) instead.</ p >
212
251
< h2 id ="format "> Format</ h2 >
213
- < p > cistern uses a configuration file in < a href ="https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.5.0.md "> TOML version v0.5.0</ a > format. The configuration file is made of keys grouped together in tables. The specification of each table is given in the example below.</ p >
214
- < h2 id ="example "> Example</ h2 >
215
- < p > This example describes and uses all existing configuration options.</ p >
252
+ < p > cistern uses a configuration file in < a href ="https://github.com/toml-lang/toml/blob/master/versions/en/toml-v0.5.0.md "> TOML version v0.5.0</ a > format.</ p >
253
+ < p > The complete format of the configuration file is described in the example included in the release archives which is also available < a href ="https://github.com/nbedos/cistern/blob/master/cmd/cistern/cistern.toml "> on GitHub</ a > </ p >
254
+ < h2 id ="minimal-example "> Minimal example</ h2 >
255
+ < p > This is a minimal example of a configuration file focused mostly on setting up credentials. It should be enough to get you started running cistern.</ p >
216
256
< pre class ="toml "> < code > #### CISTERN CONFIGURATION FILE ####
217
- # This file is a complete, valid configuration file for cistern
218
- # and should be located at $XDG_CONFIG_HOME/cistern/cistern.toml
219
- #
257
+ # This is a configuration file for cistern that should be located at
258
+ # $XDG_CONFIG_HOME/cistern/cistern.toml
259
+
260
+ ## GENERIC OPTIONS ##
261
+ # List of columns displayed on screen. Available columns are
262
+ # "ref", "pipeline", "type", "state", "created", "started",
263
+ # "finished", "duration", "xfail", "name", "url"
264
+ columns = ["ref", "pipeline", "type", "state", "started", "duration", "name", "url"]
265
+
266
+ # Name of the column used for sorting the table prefixed by an
267
+ # optional "+" (ascending order) or "-" (descending order).
268
+ sort = "-started"
269
+
220
270
221
271
## PROVIDERS ##
222
272
[providers]
223
- # The 'providers' table is used to define credentials for
224
- # accessing online services. cistern relies on two types of
225
- # providers:
273
+ # The sections below define credentials for accessing source
274
+ # providers (GitHub, GitLab) and CI providers (GitLab, Travis,
275
+ # AppVeyor, Azure Devops, CircleCI).
226
276
#
227
- # - 'source providers' are used for listing the CI pipelines
228
- # associated to a given commit (GitHub and GitLab are source
229
- # providers)
230
- # - 'CI providers' are used to get detailed information about
231
- # CI pipelines (GitLab, AppVeyor, CircleCI, Travis and Azure
232
- # Devops are CI providers)
233
- #
234
- # cistern requires credentials for at least one source provider and
235
- # one CI provider to run. Feel free to remove sections below
236
- # as long as this rule is met.
237
- #
238
- # Note that for all providers, not setting an API token or
239
- # setting `token = ""` will cause the provider to make
240
- # unauthenticated API requests.
277
+ # Feel free to remove any section as long as you leave one
278
+ # section for a source provider and one for a CI provider.
279
+ #
280
+ # When an API token is not set or set to the empty string,
281
+ # cistern will still run but with some limitations:
282
+ # - GitHub: cistern will hit the rate-limit for
283
+ # unauthenticated requests in a few minutes
284
+ # - GitLab: cistern will NOT be able to access pipeline
285
+ # jobs
241
286
#
242
287
243
288
### GITHUB ###
244
289
[[providers.github]]
245
290
# GitHub API token (optional, string)
246
- #
247
- # Note: Unauthenticated API requests are heavily rate-limited by
248
- # GitHub (60 requests per hour and per IP address) whereas
249
- # authenticated clients benefit from a rate of 5000 requests per
250
- # hour. Providing an API token is strongly encouraged: without
251
- # one, cistern will likely reach the rate limit in a matter of
252
- # minutes.
253
- #
254
291
# GitHub token management: https://github.com/settings/tokens
255
292
token = ""
256
293
257
294
258
295
### GITLAB ###
259
296
[[providers.gitlab]]
260
- # Name shown by cistern for this provider
261
- # (optional, string, default: "gitlab")
262
- name = "gitlab"
263
-
264
- # GitLab instance URL (optional, string, default: "https://gitlab.com")
297
+ # GitLab instance URL (optional, string, default:
298
+ # "https://gitlab.com")
265
299
# (the GitLab instance must support GitLab REST API V4)
266
300
url = "https://gitlab.com"
267
301
268
302
# GitLab API token (optional, string)
269
- #
270
- # Note: GitLab prevents access to pipeline jobs for
271
- # unauthenticated users meaning if you wish to use cistern
272
- # to view GitLab pipelines you will have to provide
273
- # appropriate credentials. This is true even for pipelines
274
- # of public repositories.
275
- #
276
303
# gitlab.com token management:
277
304
# https://gitlab.com/profile/personal_access_tokens
278
305
token = ""
279
306
280
307
281
308
### TRAVIS CI ###
282
309
[[providers.travis]]
283
- # Name shown by cistern for this provider
284
- # (optional, string, default: "travis")
285
- name = "travis"
286
-
287
310
# URL of the Travis instance. "org" and "com" can be used as
288
311
# shorthands for the full URL of travis.org and travis.com
289
312
# (string, mandatory)
290
313
url = "org"
291
314
292
- # API access token for the travis API (string, optional)
315
+ # API access token for the travis API (string, optional).
293
316
# Travis tokens are managed at:
294
317
# - https://travis-ci.org/account/preferences
295
318
# - https://travis-ci.com/account/preferences
@@ -298,39 +321,26 @@ <h2 id="example">Example</h2>
298
321
299
322
# Define another account for accessing travis.com
300
323
[[providers.travis]]
301
- name = "travis"
302
324
url = "com"
303
325
token = ""
304
326
305
327
306
328
### APPVEYOR ###
307
329
[[providers.appveyor]]
308
- # Name shown by cistern for this provider
309
- # (optional, string, default: "appveyor")
310
- name = "appveyor"
311
-
312
330
# AppVeyor API token (optional, string)
313
331
# AppVeyor token managemement: https://ci.appveyor.com/api-keys
314
332
token = ""
315
333
316
334
317
335
### CIRCLECI ###
318
336
[[providers.circleci]]
319
- # Name shown by cistern for this provider
320
- # (optional, string, default: "circleci")
321
- name = "circleci"
322
-
323
337
# Circle CI API token (optional, string)
324
338
# See https://circleci.com/account/api
325
339
token = ""
326
340
327
341
328
342
### AZURE DEVOPS ###
329
343
[[providers.azure]]
330
- # Name shown by cistern for this provider
331
- # (optional, string, default: "azure")
332
- name = "azure"
333
-
334
344
# Azure API token (optional, string)
335
345
# Azure token management is done at https://dev.azure.com/ via
336
346
# the user settings menu
@@ -366,7 +376,7 @@ <h1 id="examples">EXAMPLES</h1>
366
376
cistern -r https://gitlab.com/nbedos/cistern # Web URL
367
377
cistern -r
[email protected] :nbedos/cistern.git # Git URL
368
378
cistern -r github.com/nbedos/cistern # URL without scheme
369
- cistern -r /home/user/repos/repo # Path to a repository
379
+ cistern -r /home/user/repos/repo # Path to a repository
370
380
371
381
# Specify both repository and git reference
372
382
cistern -r github.com/nbedos/cistern master</ code > </ pre >
0 commit comments