pkl-cli 0.33.0

Product `pkl` CLI binary for Apple Pkl 0.33.0
Documentation
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
//! Verbatim Apple Pkl 0.33.0 CLI help texts and Clikt shell-completion scripts.

pub const HELP_ROOT: &str = "\
Usage: pkl [<options>] <command> [<args>]...

Options:
  -v, --version  Show the version and exit
  -h, --help     Show this message and exit

Commands:
  eval              Render pkl module(s)
  repl              Start a REPL session
  server            Run as a server that communicates over standard input/output
  test              Run tests within the given module(s)
  project           Run commands related to projects
  download-package  Download package(s)
  analyze           Commands related to static analysis
  format            Format or check formatting of Pkl files.
  run               Run a Pkl pkl:Command CLI tool
  shell-completion  Generate a completion script for the given shell

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_EVAL: &str = "\
Usage: pkl eval [<options>] <modules>...

  Render pkl module(s)

Options:
  --allowed-modules=<pattern1,pattern2>
                                 URI patterns that determine which modules can
                                 be loaded and evaluated.
  --allowed-resources=<pattern1,pattern2>
                                 URI patterns that determine which external
                                 resources can be read.
  --root-dir=<path>              Restricts access to file-based modules and
                                 resources to those located under the root
                                 directory.
  --cache-dir=<path>             The cache directory for storing packages.
  -w, --working-dir=<path>       Base path that relative module paths are
                                 resolved against.
  -p, --property=<name=value>    External property to set (repeatable).
  --color=<when>                 Whether to format messages in ANSI color.
                                 Possible values of <when> are 'never', 'auto',
                                 and 'always'.
  --no-cache                     Disable caching of packages
  -f, --format=<text>            Output format to generate. <json, jsonnet, pcf,
                                 properties, plist, xml, yaml, pkl-binary>
  -e, --env-var=<name=value>     Environment variable to set (repeatable).
  --module-path=<path1:path2>    Directories, ZIP archives, or JAR archives to
                                 search when resolving modulepath: URIs.
  --settings=<value>             Pkl settings module to use.
  -t, --timeout=<number>         Duration, in seconds, after which evaluation of
                                 a source module will be timed out.
  --ca-certificates=<path>       Only trust CA certificates from the provided
                                 file(s).
  --http-proxy=<address>         Proxy to use for HTTP(S) connections.
  --http-no-proxy=<pattern1,pattern>
                                 Hostnames that should not be connected to via a
                                 proxy.
  --http-rewrite=<from=to>       URL prefixes that should be rewritten.
  --http-header=<url-pattern>=<header name>:<header value>
                                 HTTP header to add to the request.
  --external-module-reader=<scheme>='<executable> [<arguments>]'>
                                 External reader registrations for module URI
                                 schemes
  --external-resource-reader=<scheme>='<executable> [<arguments>]'>
                                 External reader registrations for resource URI
                                 schemes
  --trace-mode=<style>           Specifies how calls to trace() are formatted.
                                 Possible values of <style> are 'compact' and
                                 'pretty'.
  --project-dir=<path>           The project directory to use for this command.
                                 By default, searches up from the working
                                 directory for a PklProject file.
  --omit-project-settings        Ignores evaluator settings set in the
                                 PklProject file.
  --no-project                   Disables loading settings and dependencies from
                                 the PklProject file.
  -o, --output-path=<path>       File path where the output file is placed.
  --module-output-separator=<string>
                                 Separator to use when multiple module outputs
                                 are written to the same file. (default: ---)
  -x, --expression=<expression>  Expression to be evaluated within the module.
  -m, --multiple-file-output-path=<path>
                                 Directory where a module's multiple file output
                                 is placed.
  --power-assertions / --no-power-assertions
                                 Enable power assertions for detailed assertion
                                 failure messages.
  --profile-cpu-output=<path>    The file to write CPU profiler output to.
                                 Omitting this option disables CPU profiling.
  --profile-cpu-sample-period=<int>
                                 Duration, in milliseconds, for the CPU profiler
                                 to poll for samples.
  -h, --help                     Show this message and exit

Arguments:
  <modules>  Module paths or URIs to evaluate.

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_TEST: &str = "\
Usage: pkl test [<options>] [<modules>]...

  Run tests within the given module(s)

Options:
  --allowed-modules=<pattern1,pattern2>
                                  URI patterns that determine which modules can
                                  be loaded and evaluated.
  --allowed-resources=<pattern1,pattern2>
                                  URI patterns that determine which external
                                  resources can be read.
  --root-dir=<path>               Restricts access to file-based modules and
                                  resources to those located under the root
                                  directory.
  --cache-dir=<path>              The cache directory for storing packages.
  -w, --working-dir=<path>        Base path that relative module paths are
                                  resolved against.
  -p, --property=<name=value>     External property to set (repeatable).
  --color=<when>                  Whether to format messages in ANSI color.
                                  Possible values of <when> are 'never', 'auto',
                                  and 'always'.
  --no-cache                      Disable caching of packages
  -f, --format=<text>             Output format to generate. <json, jsonnet,
                                  pcf, properties, plist, xml, yaml, pkl-binary>
  -e, --env-var=<name=value>      Environment variable to set (repeatable).
  --module-path=<path1:path2>     Directories, ZIP archives, or JAR archives to
                                  search when resolving modulepath: URIs.
  --settings=<value>              Pkl settings module to use.
  -t, --timeout=<number>          Duration, in seconds, after which evaluation
                                  of a source module will be timed out.
  --ca-certificates=<path>        Only trust CA certificates from the provided
                                  file(s).
  --http-proxy=<address>          Proxy to use for HTTP(S) connections.
  --http-no-proxy=<pattern1,pattern>
                                  Hostnames that should not be connected to via
                                  a proxy.
  --http-rewrite=<from=to>        URL prefixes that should be rewritten.
  --http-header=<url-pattern>=<header name>:<header value>
                                  HTTP header to add to the request.
  --external-module-reader=<scheme>='<executable> [<arguments>]'>
                                  External reader registrations for module URI
                                  schemes
  --external-resource-reader=<scheme>='<executable> [<arguments>]'>
                                  External reader registrations for resource URI
                                  schemes
  --trace-mode=<style>            Specifies how calls to trace() are formatted.
                                  Possible values of <style> are 'compact' and
                                  'pretty'.
  --project-dir=<path>            The project directory to use for this command.
                                  By default, searches up from the working
                                  directory for a PklProject file.
  --omit-project-settings         Ignores evaluator settings set in the
                                  PklProject file.
  --no-project                    Disables loading settings and dependencies
                                  from the PklProject file.
  --junit-reports=<dir>           Directory where to store JUnit reports.
  --junit-aggregate-reports       Aggregate JUnit reports into a single file.
  --junit-aggregate-suite-name=<name>
                                  The name of the root JUnit test suite.
  --overwrite                     Force generation of expected examples.
  --test-reporter=(spec|minimal)  Which test reporter to use for CLI output.
  --profile-cpu-output=<path>     The file to write CPU profiler output to.
                                  Omitting this option disables CPU profiling.
  --profile-cpu-sample-period=<int>
                                  Duration, in milliseconds, for the CPU
                                  profiler to poll for samples.
  --power-assertions / --no-power-assertions
                                  Enable power assertions for detailed assertion
                                  failure messages.
  -h, --help                      Show this message and exit

Arguments:
  <modules>  Module paths or URIs to evaluate.

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_REPL: &str = "\
Usage: pkl repl [<options>]

  Start a REPL session

Options:
  --allowed-modules=<pattern1,pattern2>
                               URI patterns that determine which modules can be
                               loaded and evaluated.
  --allowed-resources=<pattern1,pattern2>
                               URI patterns that determine which external
                               resources can be read.
  --root-dir=<path>            Restricts access to file-based modules and
                               resources to those located under the root
                               directory.
  --cache-dir=<path>           The cache directory for storing packages.
  -w, --working-dir=<path>     Base path that relative module paths are resolved
                               against.
  -p, --property=<name=value>  External property to set (repeatable).
  --color=<when>               Whether to format messages in ANSI color.
                               Possible values of <when> are 'never', 'auto',
                               and 'always'.
  --no-cache                   Disable caching of packages
  -f, --format=<text>          Output format to generate. <json, jsonnet, pcf,
                               properties, plist, xml, yaml, pkl-binary>
  -e, --env-var=<name=value>   Environment variable to set (repeatable).
  --module-path=<path1:path2>  Directories, ZIP archives, or JAR archives to
                               search when resolving modulepath: URIs.
  --settings=<value>           Pkl settings module to use.
  -t, --timeout=<number>       Duration, in seconds, after which evaluation of a
                               source module will be timed out.
  --ca-certificates=<path>     Only trust CA certificates from the provided
                               file(s).
  --http-proxy=<address>       Proxy to use for HTTP(S) connections.
  --http-no-proxy=<pattern1,pattern>
                               Hostnames that should not be connected to via a
                               proxy.
  --http-rewrite=<from=to>     URL prefixes that should be rewritten.
  --http-header=<url-pattern>=<header name>:<header value>
                               HTTP header to add to the request.
  --external-module-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for module URI
                               schemes
  --external-resource-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for resource URI
                               schemes
  --trace-mode=<style>         Specifies how calls to trace() are formatted.
                               Possible values of <style> are 'compact' and
                               'pretty'.
  --project-dir=<path>         The project directory to use for this command. By
                               default, searches up from the working directory
                               for a PklProject file.
  --omit-project-settings      Ignores evaluator settings set in the PklProject
                               file.
  --no-project                 Disables loading settings and dependencies from
                               the PklProject file.
  -h, --help                   Show this message and exit

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_SERVER: &str = "\
Usage: pkl server [<options>]

  Run as a server that communicates over standard input/output

Options:
  -h, --help  Show this message and exit

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_FORMAT: &str = "\
Usage: pkl format [<options>] [<paths>]...

  Format or check formatting of Pkl files.

  Examples:

  ╭───────────────────────────────────────────────────────────────────╮
  │# Overwrite all Pkl files inside `my/folder/`, recursively.        │
  │$ pkl format -w my/folder/                                         │
  │                                                                   │
  │# Check formatting of all files, printing filenames with formatting│
  │violations to stdout.                                              │
  │# Exit with exit code `11` if formatting violations were found.    │
  │$ pkl format --diff-name-only my/folder/                           │
  │                                                                   │
  │# Format Pkl code from stdin.                                      │
  │$ echo \"foo = 1\" | pkl format -                                    │
  ╰───────────────────────────────────────────────────────────────────╯

Options:
  --grammar-version=(1|2)  The grammar compatibility version to use.
                           1: 0.25 - 0.29
                           2: 0.30+ (default)
  -w, --write              Format files in place, overwriting them. Implies
                           ---diff-name-only.
  --diff-name-only         Write the path of files with formatting violations to
                           stdout.
  -s, --silent             Don't write to stdout or stderr. Mutually exclusive
                           with --diff-name-only.
  -h, --help               Show this message and exit

Arguments:
  <paths>  Files or directory to check. Use - to read from stdin.

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_RUN: &str = "\
Usage: pkl run [<options>] [<module>] [<args>]...

  Run a Pkl pkl:Command CLI tool

Options:
  --allowed-modules=<pattern1,pattern2>
                               URI patterns that determine which modules can be
                               loaded and evaluated.
  --allowed-resources=<pattern1,pattern2>
                               URI patterns that determine which external
                               resources can be read.
  --root-dir=<path>            Restricts access to file-based modules and
                               resources to those located under the root
                               directory.
  --cache-dir=<path>           The cache directory for storing packages.
  -w, --working-dir=<path>     Base path that relative module paths are resolved
                               against.
  -p, --property=<name=value>  External property to set (repeatable).
  --color=<when>               Whether to format messages in ANSI color.
                               Possible values of <when> are 'never', 'auto',
                               and 'always'.
  --no-cache                   Disable caching of packages
  -f, --format=<text>          Output format to generate. <json, jsonnet, pcf,
                               properties, plist, xml, yaml, pkl-binary>
  -e, --env-var=<name=value>   Environment variable to set (repeatable).
  --module-path=<path1:path2>  Directories, ZIP archives, or JAR archives to
                               search when resolving modulepath: URIs.
  --settings=<value>           Pkl settings module to use.
  -t, --timeout=<number>       Duration, in seconds, after which evaluation of a
                               source module will be timed out.
  --ca-certificates=<path>     Only trust CA certificates from the provided
                               file(s).
  --http-proxy=<address>       Proxy to use for HTTP(S) connections.
  --http-no-proxy=<pattern1,pattern>
                               Hostnames that should not be connected to via a
                               proxy.
  --http-rewrite=<from=to>     URL prefixes that should be rewritten.
  --http-header=<url-pattern>=<header name>:<header value>
                               HTTP header to add to the request.
  --external-module-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for module URI
                               schemes
  --external-resource-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for resource URI
                               schemes
  --trace-mode=<style>         Specifies how calls to trace() are formatted.
                               Possible values of <style> are 'compact' and
                               'pretty'.
  -h, --help                   Show this message and exit
  --project-dir=<path>         The project directory to use for this command. By
                               default, searches up from the working directory
                               for a PklProject file.
  --omit-project-settings      Ignores evaluator settings set in the PklProject
                               file.
  --no-project                 Disables loading settings and dependencies from
                               the PklProject file.
  --profile-cpu-output=<path>  The file to write CPU profiler output to.
                               Omitting this option disables CPU profiling.
  --profile-cpu-sample-period=<int>
                               Duration, in milliseconds, for the CPU profiler
                               to poll for samples.

Arguments:
  <module>  Root pkl:Command module to invoke.
  <args>

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_SHELL_COMPLETION: &str = "\
Usage: pkl shell-completion [<options>] <shell>

  Generate a completion script for the given shell

Options:
  -h, --help  Show this message and exit

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_PROJECT: &str = "\
Usage: pkl project [<options>] <command> [<args>]...

  Run commands related to projects

Options:
  -h, --help  Show this message and exit

Commands:
  resolve  Resolve dependencies for project(s)
  package  Verify package(s), and prepare package artifacts to be published.

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_PROJECT_RESOLVE: &str = "\
Usage: pkl project resolve [<options>] [<dir>]...


  Resolve dependencies for project(s)

  This command takes the dependencies of PklProjects, and writes the resolved
  versions to PklProject.deps.json files.

  Examples:

  ╭───────────────────────────────────────────────────────────────────────────╮
  │  # Search the current working directory for a project, and resolve its    │
  │dependencies.                                                              │
  │  $ pkl project resolve                                                    │
  │                                                                           │
  │  # Resolve dependencies for all projects within the `packages/` directory.│
  │  $ pkl project resolve packages/*/                                        │
  ╰───────────────────────────────────────────────────────────────────────────╯

Options:
  --allowed-modules=<pattern1,pattern2>
                               URI patterns that determine which modules can be
                               loaded and evaluated.
  --allowed-resources=<pattern1,pattern2>
                               URI patterns that determine which external
                               resources can be read.
  --root-dir=<path>            Restricts access to file-based modules and
                               resources to those located under the root
                               directory.
  --cache-dir=<path>           The cache directory for storing packages.
  -w, --working-dir=<path>     Base path that relative module paths are resolved
                               against.
  -p, --property=<name=value>  External property to set (repeatable).
  --color=<when>               Whether to format messages in ANSI color.
                               Possible values of <when> are 'never', 'auto',
                               and 'always'.
  --no-cache                   Disable caching of packages
  -f, --format=<text>          Output format to generate. <json, jsonnet, pcf,
                               properties, plist, xml, yaml, pkl-binary>
  -e, --env-var=<name=value>   Environment variable to set (repeatable).
  --module-path=<path1:path2>  Directories, ZIP archives, or JAR archives to
                               search when resolving modulepath: URIs.
  --settings=<value>           Pkl settings module to use.
  -t, --timeout=<number>       Duration, in seconds, after which evaluation of a
                               source module will be timed out.
  --ca-certificates=<path>     Only trust CA certificates from the provided
                               file(s).
  --http-proxy=<address>       Proxy to use for HTTP(S) connections.
  --http-no-proxy=<pattern1,pattern>
                               Hostnames that should not be connected to via a
                               proxy.
  --http-rewrite=<from=to>     URL prefixes that should be rewritten.
  --http-header=<url-pattern>=<header name>:<header value>
                               HTTP header to add to the request.
  --external-module-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for module URI
                               schemes
  --external-resource-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for resource URI
                               schemes
  --trace-mode=<style>         Specifies how calls to trace() are formatted.
                               Possible values of <style> are 'compact' and
                               'pretty'.
  -h, --help                   Show this message and exit

Arguments:
  <dir>  The project directories to resolve dependencies for

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_PROJECT_PACKAGE: &str = "\
Usage: pkl project package [<options>] [<dir>]...

  Verify package(s), and prepare package artifacts to be published.

  This command runs a project's api tests, as defined by apiTests in PklProject.
  Additionally, it verifies that all imports resolve to paths that are local to
  the project.

  Finally, this command writes the following artifacts into the output directory
  specified by the output path.

   • name@version - dependency metadata
   • name@version.sha256 - dependency metadata's SHA-256 checksum
   • name@version.zip - package archive
   • name@version.zip.sha256 - package archive's SHA-256 checksum

  The output path option accepts the following placeholders:

   • %{name}: The display name of the package
   • %{version}: The version of the package

  If a project has local project dependencies, the depended upon project
  directories must also be included as arguments to this command.

  Examples:

  ╭─────────────────────────────────────────────────────────────────────╮
  │# Search the current working directory for a project, and package it.│
  │$ pkl project package                                                │
  │                                                                     │
  │# Package all projects within the `packages/` directory.             │
  │$ pkl project package packages/*/                                    │
  ╰─────────────────────────────────────────────────────────────────────╯

Options:
  --allowed-modules=<pattern1,pattern2>
                                  URI patterns that determine which modules can
                                  be loaded and evaluated.
  --allowed-resources=<pattern1,pattern2>
                                  URI patterns that determine which external
                                  resources can be read.
  --root-dir=<path>               Restricts access to file-based modules and
                                  resources to those located under the root
                                  directory.
  --cache-dir=<path>              The cache directory for storing packages.
  -w, --working-dir=<path>        Base path that relative module paths are
                                  resolved against.
  -p, --property=<name=value>     External property to set (repeatable).
  --color=<when>                  Whether to format messages in ANSI color.
                                  Possible values of <when> are 'never', 'auto',
                                  and 'always'.
  --no-cache                      Disable caching of packages
  -f, --format=<text>             Output format to generate. <json, jsonnet,
                                  pcf, properties, plist, xml, yaml, pkl-binary>
  -e, --env-var=<name=value>      Environment variable to set (repeatable).
  --module-path=<path1:path2>     Directories, ZIP archives, or JAR archives to
                                  search when resolving modulepath: URIs.
  --settings=<value>              Pkl settings module to use.
  -t, --timeout=<number>          Duration, in seconds, after which evaluation
                                  of a source module will be timed out.
  --ca-certificates=<path>        Only trust CA certificates from the provided
                                  file(s).
  --http-proxy=<address>          Proxy to use for HTTP(S) connections.
  --http-no-proxy=<pattern1,pattern>
                                  Hostnames that should not be connected to via
                                  a proxy.
  --http-rewrite=<from=to>        URL prefixes that should be rewritten.
  --http-header=<url-pattern>=<header name>:<header value>
                                  HTTP header to add to the request.
  --external-module-reader=<scheme>='<executable> [<arguments>]'>
                                  External reader registrations for module URI
                                  schemes
  --external-resource-reader=<scheme>='<executable> [<arguments>]'>
                                  External reader registrations for resource URI
                                  schemes
  --trace-mode=<style>            Specifies how calls to trace() are formatted.
                                  Possible values of <style> are 'compact' and
                                  'pretty'.
  --junit-reports=<dir>           Directory where to store JUnit reports.
  --junit-aggregate-reports       Aggregate JUnit reports into a single file.
  --junit-aggregate-suite-name=<name>
                                  The name of the root JUnit test suite.
  --overwrite                     Force generation of expected examples.
  --test-reporter=(spec|minimal)  Which test reporter to use for CLI output.
  --output-path=<path>            The directory to write artifacts to
  --skip-publish-check            Skip checking if a package has already been
                                  published with different contents
  --install                       Install the built package into the module
                                  cache dir
  -h, --help                      Show this message and exit

Arguments:
  <dir>  The project directories to package

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_DOWNLOAD_PACKAGE: &str = "\
Usage: pkl download-package [<options>] <package>...

  Download package(s)

  This command downloads the specified packages to the cache directory. If the
  package already exists in the cache directory, this command is a no-op.

  Examples:

  ╭───────────────────────────────────────────────────────────╮
  │# Download two packages                                    │
  │$ pkl download-package package://example.com/package1@1.0.0│
  │package://example.com/package2@1.0.0                       │
  ╰───────────────────────────────────────────────────────────╯

Options:
  --allowed-modules=<pattern1,pattern2>
                               URI patterns that determine which modules can be
                               loaded and evaluated.
  --allowed-resources=<pattern1,pattern2>
                               URI patterns that determine which external
                               resources can be read.
  --root-dir=<path>            Restricts access to file-based modules and
                               resources to those located under the root
                               directory.
  --cache-dir=<path>           The cache directory for storing packages.
  -w, --working-dir=<path>     Base path that relative module paths are resolved
                               against.
  -p, --property=<name=value>  External property to set (repeatable).
  --color=<when>               Whether to format messages in ANSI color.
                               Possible values of <when> are 'never', 'auto',
                               and 'always'.
  --no-cache                   Disable caching of packages
  -f, --format=<text>          Output format to generate. <json, jsonnet, pcf,
                               properties, plist, xml, yaml, pkl-binary>
  -e, --env-var=<name=value>   Environment variable to set (repeatable).
  --module-path=<path1:path2>  Directories, ZIP archives, or JAR archives to
                               search when resolving modulepath: URIs.
  --settings=<value>           Pkl settings module to use.
  -t, --timeout=<number>       Duration, in seconds, after which evaluation of a
                               source module will be timed out.
  --ca-certificates=<path>     Only trust CA certificates from the provided
                               file(s).
  --http-proxy=<address>       Proxy to use for HTTP(S) connections.
  --http-no-proxy=<pattern1,pattern>
                               Hostnames that should not be connected to via a
                               proxy.
  --http-rewrite=<from=to>     URL prefixes that should be rewritten.
  --http-header=<url-pattern>=<header name>:<header value>
                               HTTP header to add to the request.
  --external-module-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for module URI
                               schemes
  --external-resource-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for resource URI
                               schemes
  --trace-mode=<style>         Specifies how calls to trace() are formatted.
                               Possible values of <style> are 'compact' and
                               'pretty'.
  --project-dir=<path>         The project directory to use for this command. By
                               default, searches up from the working directory
                               for a PklProject file.
  --omit-project-settings      Ignores evaluator settings set in the PklProject
                               file.
  --no-project                 Disables loading settings and dependencies from
                               the PklProject file.
  --no-transitive              Skip downloading transitive dependencies of a
                               package
  -h, --help                   Show this message and exit

Arguments:
  <package>  The package URIs to download

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_ANALYZE: &str = "\
Usage: pkl analyze [<options>] <command> [<args>]...

  Commands related to static analysis

Options:
  -h, --help  Show this message and exit

Commands:
  imports  Prints the graph of modules imported by the input module(s).

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const HELP_ANALYZE_IMPORTS: &str = "\
Usage: pkl analyze imports [<options>] <modules>...

  Prints the graph of modules imported by the input module(s).

Options:
  --allowed-modules=<pattern1,pattern2>
                               URI patterns that determine which modules can be
                               loaded and evaluated.
  --allowed-resources=<pattern1,pattern2>
                               URI patterns that determine which external
                               resources can be read.
  --root-dir=<path>            Restricts access to file-based modules and
                               resources to those located under the root
                               directory.
  --cache-dir=<path>           The cache directory for storing packages.
  -w, --working-dir=<path>     Base path that relative module paths are resolved
                               against.
  -p, --property=<name=value>  External property to set (repeatable).
  --color=<when>               Whether to format messages in ANSI color.
                               Possible values of <when> are 'never', 'auto',
                               and 'always'.
  --no-cache                   Disable caching of packages
  -f, --format=<text>          Output format to generate. <json, jsonnet, pcf,
                               properties, plist, xml, yaml, pkl-binary>
  -e, --env-var=<name=value>   Environment variable to set (repeatable).
  --module-path=<path1:path2>  Directories, ZIP archives, or JAR archives to
                               search when resolving modulepath: URIs.
  --settings=<value>           Pkl settings module to use.
  -t, --timeout=<number>       Duration, in seconds, after which evaluation of a
                               source module will be timed out.
  --ca-certificates=<path>     Only trust CA certificates from the provided
                               file(s).
  --http-proxy=<address>       Proxy to use for HTTP(S) connections.
  --http-no-proxy=<pattern1,pattern>
                               Hostnames that should not be connected to via a
                               proxy.
  --http-rewrite=<from=to>     URL prefixes that should be rewritten.
  --http-header=<url-pattern>=<header name>:<header value>
                               HTTP header to add to the request.
  --external-module-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for module URI
                               schemes
  --external-resource-reader=<scheme>='<executable> [<arguments>]'>
                               External reader registrations for resource URI
                               schemes
  --trace-mode=<style>         Specifies how calls to trace() are formatted.
                               Possible values of <style> are 'compact' and
                               'pretty'.
  --project-dir=<path>         The project directory to use for this command. By
                               default, searches up from the working directory
                               for a PklProject file.
  --omit-project-settings      Ignores evaluator settings set in the PklProject
                               file.
  --no-project                 Disables loading settings and dependencies from
                               the PklProject file.
  -o, --output-path=<path>     File path where the output file is placed.
  -h, --help                   Show this message and exit

Arguments:
  <modules>  Module paths or URIs to evaluate.

For more information, visit
https://pkl-lang.org/main/0.33.0/pkl-cli/index.html#usage
";

pub const COMPLETION_BASH: &str = include_str!("../assets/completion_bash.sh");
pub const COMPLETION_ZSH: &str = include_str!("../assets/completion_zsh.sh");
pub const COMPLETION_FISH: &str = include_str!("../assets/completion_fish.fish");