1
1
#! /usr/bin/env bash
2
- # This script was generated by bashly 1.1.10 (https://bashly.dannyb.co)
2
+ # This script was generated by bashly 1.2.0 (https://bashly.dannyb.co)
3
3
# Modifying it manually is not recommended
4
4
5
5
if [[ " ${BASH_VERSINFO:- 0} " -lt 4 ]]; then
@@ -12,15 +12,7 @@ version_command() {
12
12
}
13
13
14
14
c8l_usage () {
15
- if [[ -n $long_usage ]]; then
16
- printf " c8l - [EXPERIMENTAL] (c8l) Chainloop Labs CLI\n"
17
- echo
18
-
19
- else
20
- printf " c8l - [EXPERIMENTAL] (c8l) Chainloop Labs CLI\n"
21
- echo
22
-
23
- fi
15
+ printf " c8l - [EXPERIMENTAL] (c8l) Chainloop Labs CLI\n\n"
24
16
25
17
printf " %s\n" " Usage:"
26
18
printf " c8l COMMAND\n"
@@ -50,16 +42,7 @@ c8l_usage() {
50
42
}
51
43
52
44
c8l_help_usage () {
53
- if [[ -n $long_usage ]]; then
54
- printf " c8l help - Show help about a command\n"
55
- echo
56
-
57
- else
58
- printf " c8l help - Show help about a command\n"
59
- echo
60
-
61
- fi
62
-
45
+ printf " c8l help - Show help about a command\n\n"
63
46
printf " Alias: h\n"
64
47
echo
65
48
@@ -79,16 +62,7 @@ c8l_help_usage() {
79
62
}
80
63
81
64
c8l_inspect_usage () {
82
- if [[ -n $long_usage ]]; then
83
- printf " c8l inspect - [i] Inspect.\n"
84
- echo
85
-
86
- else
87
- printf " c8l inspect - [i] Inspect.\n"
88
- echo
89
-
90
- fi
91
-
65
+ printf " c8l inspect - [i] Inspect.\n\n"
92
66
printf " Alias: i\n"
93
67
echo
94
68
@@ -108,15 +82,7 @@ c8l_inspect_usage() {
108
82
}
109
83
110
84
c8l_source_usage () {
111
- if [[ -n $long_usage ]]; then
112
- printf " c8l source - Show the content of c8l script ready for sourcing.\n"
113
- echo
114
-
115
- else
116
- printf " c8l source - Show the content of c8l script ready for sourcing.\n"
117
- echo
118
-
119
- fi
85
+ printf " c8l source - Show the content of c8l script ready for sourcing.\n\n"
120
86
121
87
printf " %s\n" " Usage:"
122
88
printf " c8l source\n"
@@ -134,16 +100,7 @@ c8l_source_usage() {
134
100
}
135
101
136
102
c8l_cmd_usage () {
137
- if [[ -n $long_usage ]]; then
138
- printf " c8l cmd - Run a command in the c8l environment.\n"
139
- echo
140
-
141
- else
142
- printf " c8l cmd - Run a command in the c8l environment.\n"
143
- echo
144
-
145
- fi
146
-
103
+ printf " c8l cmd - Run a command in the c8l environment.\n\n"
147
104
printf " Alias: r\n"
148
105
echo
149
106
@@ -169,16 +126,7 @@ c8l_cmd_usage() {
169
126
}
170
127
171
128
c8l_cli_usage () {
172
- if [[ -n $long_usage ]]; then
173
- printf " c8l cli - Chainloop CLI UX improved\n"
174
- echo
175
-
176
- else
177
- printf " c8l cli - Chainloop CLI UX improved\n"
178
- echo
179
-
180
- fi
181
-
129
+ printf " c8l cli - Chainloop CLI UX improved\n\n"
182
130
printf " Alias: c\n"
183
131
echo
184
132
@@ -212,16 +160,7 @@ c8l_cli_usage() {
212
160
}
213
161
214
162
c8l_cli_install_tools_usage () {
215
- if [[ -n $long_usage ]]; then
216
- printf " c8l cli install-tools - [it] Install Chainloop CLI and all required tools\n"
217
- echo
218
-
219
- else
220
- printf " c8l cli install-tools - [it] Install Chainloop CLI and all required tools\n"
221
- echo
222
-
223
- fi
224
-
163
+ printf " c8l cli install-tools - [it] Install Chainloop CLI and all required tools\n\n"
225
164
printf " Alias: it\n"
226
165
echo
227
166
@@ -241,16 +180,7 @@ c8l_cli_install_tools_usage() {
241
180
}
242
181
243
182
c8l_cli_attestation_add_from_yaml_usage () {
244
- if [[ -n $long_usage ]]; then
245
- printf " c8l cli attestation-add-from-yaml - [aafy] Add to the current atestation based on the yaml file.\n"
246
- echo
247
-
248
- else
249
- printf " c8l cli attestation-add-from-yaml - [aafy] Add to the current atestation based on the yaml file.\n"
250
- echo
251
-
252
- fi
253
-
183
+ printf " c8l cli attestation-add-from-yaml - [aafy] Add to the current atestation based on the yaml file.\n\n"
254
184
printf " Alias: aafy\n"
255
185
echo
256
186
@@ -270,16 +200,7 @@ c8l_cli_attestation_add_from_yaml_usage() {
270
200
}
271
201
272
202
c8l_cli_attestation_status_usage () {
273
- if [[ -n $long_usage ]]; then
274
- printf " c8l cli attestation-status - [as] Get the status of the current attestation.\n"
275
- echo
276
-
277
- else
278
- printf " c8l cli attestation-status - [as] Get the status of the current attestation.\n"
279
- echo
280
-
281
- fi
282
-
203
+ printf " c8l cli attestation-status - [as] Get the status of the current attestation.\n\n"
283
204
printf " Alias: as\n"
284
205
echo
285
206
@@ -299,16 +220,7 @@ c8l_cli_attestation_status_usage() {
299
220
}
300
221
301
222
c8l_cli_attestation_push_usage () {
302
- if [[ -n $long_usage ]]; then
303
- printf " c8l cli attestation-push - [ap] Push the current attestation to the Chainloop server.\n"
304
- echo
305
-
306
- else
307
- printf " c8l cli attestation-push - [ap] Push the current attestation to the Chainloop server.\n"
308
- echo
309
-
310
- fi
311
-
223
+ printf " c8l cli attestation-push - [ap] Push the current attestation to the Chainloop server.\n\n"
312
224
printf " Alias: ap\n"
313
225
echo
314
226
@@ -328,16 +240,7 @@ c8l_cli_attestation_push_usage() {
328
240
}
329
241
330
242
c8l_cli_generate_github_summary_usage () {
331
- if [[ -n $long_usage ]]; then
332
- printf " c8l cli generate-github-summary - [ggs] Generate a summary of the attestation for GitHub Action.\n"
333
- echo
334
-
335
- else
336
- printf " c8l cli generate-github-summary - [ggs] Generate a summary of the attestation for GitHub Action.\n"
337
- echo
338
-
339
- fi
340
-
243
+ printf " c8l cli generate-github-summary - [ggs] Generate a summary of the attestation for GitHub Action.\n\n"
341
244
printf " Alias: ggs\n"
342
245
echo
343
246
@@ -357,16 +260,7 @@ c8l_cli_generate_github_summary_usage() {
357
260
}
358
261
359
262
c8l_cli_get_attestations_usage () {
360
- if [[ -n $long_usage ]]; then
361
- printf " c8l cli get-attestations - [ga] Get all attestations for artifact\n"
362
- echo
363
-
364
- else
365
- printf " c8l cli get-attestations - [ga] Get all attestations for artifact\n"
366
- echo
367
-
368
- fi
369
-
263
+ printf " c8l cli get-attestations - [ga] Get all attestations for artifact\n\n"
370
264
printf " Alias: ga\n"
371
265
echo
372
266
@@ -392,16 +286,7 @@ c8l_cli_get_attestations_usage() {
392
286
}
393
287
394
288
c8l_cli_get_usage () {
395
- if [[ -n $long_usage ]]; then
396
- printf " c8l cli get - [g] Get artifact from Chainloop\n"
397
- echo
398
-
399
- else
400
- printf " c8l cli get - [g] Get artifact from Chainloop\n"
401
- echo
402
-
403
- fi
404
-
289
+ printf " c8l cli get - [g] Get artifact from Chainloop\n\n"
405
290
printf " Alias: g\n"
406
291
echo
407
292
@@ -431,16 +316,7 @@ c8l_cli_get_usage() {
431
316
}
432
317
433
318
c8l_cli_workflow_get_usage () {
434
- if [[ -n $long_usage ]]; then
435
- printf " c8l cli workflow-get - [wg] Get workflow from Chainloop.\n"
436
- echo
437
-
438
- else
439
- printf " c8l cli workflow-get - [wg] Get workflow from Chainloop.\n"
440
- echo
441
-
442
- fi
443
-
319
+ printf " c8l cli workflow-get - [wg] Get workflow from Chainloop.\n\n"
444
320
printf " Alias: wg\n"
445
321
echo
446
322
@@ -470,16 +346,7 @@ c8l_cli_workflow_get_usage() {
470
346
}
471
347
472
348
c8l_cli_workflow_list_usage () {
473
- if [[ -n $long_usage ]]; then
474
- printf " c8l cli workflow-list - [wl] List workflows from Chainloop.\n"
475
- echo
476
-
477
- else
478
- printf " c8l cli workflow-list - [wl] List workflows from Chainloop.\n"
479
- echo
480
-
481
- fi
482
-
349
+ printf " c8l cli workflow-list - [wl] List workflows from Chainloop.\n\n"
483
350
printf " Alias: wl\n"
484
351
echo
485
352
@@ -499,16 +366,7 @@ c8l_cli_workflow_list_usage() {
499
366
}
500
367
501
368
c8l_cli_workflow_run_get_usage () {
502
- if [[ -n $long_usage ]]; then
503
- printf " c8l cli workflow-run-get - [wrg] Get workflow run from Chainloop.\n"
504
- echo
505
-
506
- else
507
- printf " c8l cli workflow-run-get - [wrg] Get workflow run from Chainloop.\n"
508
- echo
509
-
510
- fi
511
-
369
+ printf " c8l cli workflow-run-get - [wrg] Get workflow run from Chainloop.\n\n"
512
370
printf " Alias: wrg\n"
513
371
echo
514
372
@@ -538,16 +396,7 @@ c8l_cli_workflow_run_get_usage() {
538
396
}
539
397
540
398
c8l_cli_workflow_run_list_usage () {
541
- if [[ -n $long_usage ]]; then
542
- printf " c8l cli workflow-run-list - [wrl] List workflow runs from Chainloop.\n"
543
- echo
544
-
545
- else
546
- printf " c8l cli workflow-run-list - [wrl] List workflow runs from Chainloop.\n"
547
- echo
548
-
549
- fi
550
-
399
+ printf " c8l cli workflow-run-list - [wrl] List workflow runs from Chainloop.\n\n"
551
400
printf " Alias: wrl\n"
552
401
echo
553
402
@@ -1538,6 +1387,7 @@ c8l_cmd_parse_requirements() {
1538
1387
1539
1388
if [[ -z ${args['command']+x} ]]; then
1540
1389
printf " missing required argument: COMMAND\nusage: c8l cmd COMMAND\n" >&2
1390
+
1541
1391
exit 1
1542
1392
fi
1543
1393
0 commit comments