-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli-flags-inventory.yaml
More file actions
1197 lines (1171 loc) · 39.6 KB
/
Copy pathcli-flags-inventory.yaml
File metadata and controls
1197 lines (1171 loc) · 39.6 KB
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
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# =============================================================================
# @devcontainers/cli — Complete flags inventory
# Source: src/spec-node/devContainersSpecCLI.ts + featuresCLI/* + templatesCLI/*
# Generated: 2026-04-10
# Usage: Parity contract for the Go migration
# =============================================================================
# Note on conventions:
# required: true → yargs: required/demandOption
# array: true → the flag can be repeated (--flag a --flag b)
# hidden: true → does not appear in --help (experimental/internal)
# implies: [x] → requires --x to be passed as well
# alias: x → short form
# ─────────────────────────────────────────────────────────────────────────────
# Yargs global config
# ─────────────────────────────────────────────────────────────────────────────
parser_configuration:
boolean_negation: false # --no-<flag> disabled (to support --no-cache)
halt_at_non_option: conditional # Only for 'exec' when it is not --help
strict: true
demand_command: true
# ─────────────────────────────────────────────────────────────────────────────
# Global validations (shared by multiple commands)
# ─────────────────────────────────────────────────────────────────────────────
validations:
id_label_format: "name=value" # regex: /.+=.+/
mount_format: "type=<bind|volume>,source=<s>,target=<t>[,external=<true|false>]"
remote_env_format: "name=value" # regex: /.+=.*/
# =============================================================================
# COMMAND: devcontainer up
# =============================================================================
commands:
up:
description: "Create and run dev container"
handler: provisionHandler
json_output: true # outcome: success|error
exit_codes: { success: 0, error: 1 }
flags:
docker-path:
type: string
description: "Docker CLI path."
docker-compose-path:
type: string
description: "Docker Compose CLI path."
container-data-folder:
type: string
description: "Container data folder where user data inside the container will be stored."
container-system-data-folder:
type: string
description: "Container system data folder where system data inside the container will be stored."
workspace-folder:
type: string
description: "Workspace folder path. The devcontainer.json will be looked up relative to this path."
notes: "Required unless --id-label is provided"
workspace-mount-consistency:
type: choice
choices: [consistent, cached, delegated]
default: cached
description: "Workspace mount consistency."
gpu-availability:
type: choice
choices: [all, detect, none]
default: detect
description: "Availability of GPUs in case the dev container requires any."
platform:
type: string
description: "Target platform (e.g. linux/amd64). Used to resolve, pull and build the image; overrides a --platform in runArgs."
mount-workspace-git-root:
type: boolean
default: true
description: "Mount the workspace using its Git root."
mount-git-worktree-common-dir:
type: boolean
default: false
description: "Mount the Git worktree common dir for Git operations to work in the container."
id-label:
type: string
array: true
description: "Id label(s) of the format name=value."
config:
type: string
description: "devcontainer.json path."
override-config:
type: string
description: "devcontainer.json path to override any devcontainer.json in the workspace folder."
log-level:
type: choice
choices: [info, debug, trace]
default: info
description: "Log level."
log-format:
type: choice
choices: [text, json]
default: text
description: "Log format."
terminal-columns:
type: number
implies: [terminal-rows]
description: "Number of columns to render the output for."
terminal-rows:
type: number
implies: [terminal-columns]
description: "Number of rows to render the output for."
default-user-env-probe:
type: choice
choices: [none, loginInteractiveShell, interactiveShell, loginShell]
default: loginInteractiveShell
description: "Default value for the devcontainer.json's 'userEnvProbe'."
update-remote-user-uid-default:
type: choice
choices: [never, "on", "off"]
default: "on"
description: "Default for updating the remote user's UID and GID to the local user's one."
remove-existing-container:
type: boolean
default: false
description: "Removes the dev container if it already exists."
build-no-cache:
type: boolean
default: false
description: "Builds the image with --no-cache if the container does not exist."
expect-existing-container:
type: boolean
default: false
description: "Fail if the container does not exist."
skip-post-create:
type: boolean
default: false
description: "Do not run onCreateCommand, updateContentCommand, postCreateCommand, postStartCommand or postAttachCommand and do not install dotfiles."
skip-non-blocking-commands:
type: boolean
default: false
description: "Stop running user commands after running the command configured with waitFor or the updateContentCommand by default."
prebuild:
type: boolean
default: false
description: "Stop after onCreateCommand and updateContentCommand."
# Go-only divergence: TS up has no --cache-image. Starts from a prebuilt
# image (features baked in), skipping build + feature install.
cache-image:
type: string
description: "Start from this prebuilt image, skipping build and feature install (not for Compose configs)."
user-data-folder:
type: string
description: "Host path to a directory that is intended to be persisted and share state between sessions."
mount:
type: string
array: true
description: "Additional mount point(s). Format: type=<bind|volume>,source=<source>,target=<target>[,external=<true|false>]"
remote-env:
type: string
array: true
description: "Remote environment variables of the format name=value."
cache-from:
type: string
array: true
description: "Additional image to use as potential layer cache during image building."
cache-to:
type: string
description: "Additional image to use as potential layer cache during image building."
buildkit:
type: choice
choices: [auto, never]
default: auto
description: "Control whether BuildKit should be used."
additional-features:
type: string
description: "Additional features to apply to the dev container (JSON as per 'features' section in devcontainer.json)."
skip-feature-auto-mapping:
type: boolean
default: false
hidden: true
description: "Temporary option for testing."
skip-post-attach:
type: boolean
default: false
description: "Do not run postAttachCommand."
dotfiles-repository:
type: string
description: "URL of a dotfiles Git repository."
dotfiles-install-command:
type: string
description: "The command to run after cloning the dotfiles repository."
dotfiles-target-path:
type: string
default: "~/dotfiles"
description: "The path to clone the dotfiles repository to."
container-session-data-folder:
type: string
description: "Folder to cache CLI data, for example userEnvProbe results."
omit-config-remote-env-from-metadata:
type: boolean
default: false
hidden: true
description: "Omit remoteEnv from devcontainer.json for container metadata label."
secrets-file:
type: string
description: "Path to a json file containing secret environment variables as key-value pairs."
experimental-lockfile:
type: boolean
default: false
hidden: true
description: "Write lockfile."
experimental-frozen-lockfile:
type: boolean
default: false
hidden: true
description: "Ensure lockfile remains unchanged."
no-lockfile:
type: boolean
default: false
description: "Disable lockfile generation and verification."
frozen-lockfile:
type: boolean
default: false
description: "Ensure lockfile exists and remains unchanged; fail otherwise."
omit-syntax-directive:
type: boolean
default: false
hidden: true
description: "Omit Dockerfile syntax directives."
include-configuration:
type: boolean
default: false
description: "Include configuration in result."
include-merged-configuration:
type: boolean
default: false
description: "Include merged configuration in result."
log-file:
type: string
description: "Log file path."
terminal-log-file:
type: string
description: "Terminal log file path."
custom_checks:
- "id-label must match name=value format"
- "workspace-folder OR id-label is required"
- "workspace-folder OR override-config is required"
- "mount must match type=<bind|volume>,source=<s>,target=<t>[,external=<true|false>]"
- "remote-env must match name=value format"
# ===========================================================================
# COMMAND: devcontainer set-up
# ===========================================================================
set-up:
description: "Set up an existing container as a dev container"
handler: setUpHandler
json_output: true
exit_codes: { success: 0, error: 1 }
flags:
docker-path:
type: string
description: "Docker CLI path."
container-data-folder:
type: string
description: "Container data folder."
container-system-data-folder:
type: string
description: "Container system data folder."
container-id:
type: string
required: true
description: "Id of the container."
config:
type: string
description: "devcontainer.json path."
log-level:
type: choice
choices: [info, debug, trace]
default: info
log-format:
type: choice
choices: [text, json]
default: text
terminal-columns:
type: number
implies: [terminal-rows]
terminal-rows:
type: number
implies: [terminal-columns]
default-user-env-probe:
type: choice
choices: [none, loginInteractiveShell, interactiveShell, loginShell]
default: loginInteractiveShell
skip-post-create:
type: boolean
default: false
skip-non-blocking-commands:
type: boolean
default: false
user-data-folder:
type: string
remote-env:
type: string
array: true
dotfiles-repository:
type: string
dotfiles-install-command:
type: string
dotfiles-target-path:
type: string
default: "~/dotfiles"
container-session-data-folder:
type: string
include-configuration:
type: boolean
default: false
include-merged-configuration:
type: boolean
default: false
log-file:
type: string
description: "Log file path."
terminal-log-file:
type: string
description: "Terminal log file path."
custom_checks:
- "remote-env must match name=value format"
# ===========================================================================
# COMMAND: devcontainer build
# ===========================================================================
build:
description: "Build a dev container image"
positional: "[path]"
handler: buildHandler
json_output: true
exit_codes: { success: 0, error: 1 }
flags:
user-data-folder:
type: string
docker-path:
type: string
docker-compose-path:
type: string
workspace-folder:
type: string
required: true
description: "Workspace folder path."
config:
type: string
log-level:
type: choice
choices: [info, debug, trace]
default: info
log-format:
type: choice
choices: [text, json]
default: text
no-cache:
type: boolean
default: false
description: "Builds the image with --no-cache."
image-name:
type: string
array: true
description: "Image name."
cache-from:
type: string
array: true
cache-to:
type: string
buildkit:
type: choice
choices: [auto, never]
default: auto
platform:
type: string
description: "Set target platforms."
push:
type: boolean
default: false
description: "Push to a container registry."
label:
type: string
array: true
description: "Provide key and value configuration that adds metadata to an image."
output:
type: string
description: "Overrides the default behavior to load built images into the local docker registry."
additional-features:
type: string
skip-feature-auto-mapping:
type: boolean
default: false
hidden: true
skip-persisting-customizations-from-features:
type: boolean
default: false
hidden: true
experimental-lockfile:
type: boolean
default: false
hidden: true
experimental-frozen-lockfile:
type: boolean
default: false
hidden: true
no-lockfile:
type: boolean
default: false
frozen-lockfile:
type: boolean
default: false
# Go-only divergence: TS `build` has no secrets-file. Passes build secrets
# to BuildKit (--secret id=KEY,env=KEY). No TS oracle; covered by unit tests.
secrets-file:
type: string
description: "Path to a JSON file with build secrets, passed to BuildKit as build secrets (requires buildx)."
omit-syntax-directive:
type: boolean
default: false
hidden: true
# ===========================================================================
# COMMAND: devcontainer run-user-commands
# ===========================================================================
run-user-commands:
description: "Run user commands"
handler: runUserCommandsHandler
json_output: true
exit_codes: { success: 0, error: 1 }
flags:
user-data-folder:
type: string
docker-path:
type: string
docker-compose-path:
type: string
container-data-folder:
type: string
container-system-data-folder:
type: string
workspace-folder:
type: string
mount-workspace-git-root:
type: boolean
default: true
mount-git-worktree-common-dir:
type: boolean
default: false
container-id:
type: string
description: "Id of the container to run the user commands for."
id-label:
type: string
array: true
config:
type: string
override-config:
type: string
log-level:
type: choice
choices: [info, debug, trace]
default: info
log-format:
type: choice
choices: [text, json]
default: text
terminal-columns:
type: number
implies: [terminal-rows]
terminal-rows:
type: number
implies: [terminal-columns]
default-user-env-probe:
type: choice
choices: [none, loginInteractiveShell, interactiveShell, loginShell]
default: loginInteractiveShell
skip-non-blocking-commands:
type: boolean
default: false
prebuild:
type: boolean
default: false
stop-for-personalization:
type: boolean
default: false
description: "Stop for personalization."
remote-env:
type: string
array: true
skip-feature-auto-mapping:
type: boolean
default: false
hidden: true
skip-post-attach:
type: boolean
default: false
dotfiles-repository:
type: string
dotfiles-install-command:
type: string
dotfiles-target-path:
type: string
default: "~/dotfiles"
container-session-data-folder:
type: string
secrets-file:
type: string
log-file:
type: string
description: "Log file path."
terminal-log-file:
type: string
description: "Terminal log file path."
custom_checks:
- "id-label must match name=value format"
- "remote-env must match name=value format"
- "One of --container-id, --id-label or --workspace-folder is required"
# ===========================================================================
# COMMAND: devcontainer read-configuration
# ===========================================================================
read-configuration:
description: "Read configuration"
handler: readConfigurationHandler
json_output: true # Outputs config directly, not with outcome envelope
exit_codes: { success: 0, error: 1 }
flags:
user-data-folder:
type: string
docker-path:
type: string
docker-compose-path:
type: string
workspace-folder:
type: string
mount-workspace-git-root:
type: boolean
default: true
mount-git-worktree-common-dir:
type: boolean
default: false
container-id:
type: string
id-label:
type: string
array: true
config:
type: string
override-config:
type: string
log-level:
type: choice
choices: [info, debug, trace]
default: info
log-format:
type: choice
choices: [text, json]
default: text
terminal-columns:
type: number
implies: [terminal-rows]
terminal-rows:
type: number
implies: [terminal-columns]
include-features-configuration:
type: boolean
default: false
description: "Include features configuration."
include-merged-configuration:
type: boolean
default: false
additional-features:
type: string
skip-feature-auto-mapping:
type: boolean
default: false
hidden: true
log-file:
type: string
description: "Log file path."
terminal-log-file:
type: string
description: "Terminal log file path."
# Go-only divergence: TS read-configuration has no --cache-key. Additive —
# when set, adds a `cacheKey` field to the output; default output unchanged.
cache-key:
type: boolean
default: false
description: "Also emit a deterministic content-addressed cache key for the configuration."
custom_checks:
- "id-label must match name=value format"
- "One of --container-id, --id-label or --workspace-folder is required"
output_notes: >
read-configuration does NOT use an outcome envelope. It emits directly:
{ configuration, workspace, featuresConfiguration, mergedConfiguration }
# ===========================================================================
# COMMAND: devcontainer outdated
# ===========================================================================
outdated:
description: "Show current and available versions"
handler: outdatedHandler
json_output: conditional # depends on --output-format
exit_codes: { success: 0, error: 1 }
flags:
user-data-folder:
type: string
workspace-folder:
type: string
required: true
config:
type: string
output-format:
type: choice
choices: [text, json]
default: text
description: "Output format."
log-level:
type: choice
choices: [info, debug, trace]
default: info
log-format:
type: choice
choices: [text, json]
default: text
terminal-columns:
type: number
implies: [terminal-rows]
terminal-rows:
type: number
implies: [terminal-columns]
log-file:
type: string
description: "Log file path."
terminal-log-file:
type: string
description: "Terminal log file path."
output_notes: >
--output-format text: text table with columns [Feature, Current, Wanted, Latest].
--output-format json: JSON with indentation when a TTY is attached.
# ===========================================================================
# COMMAND: devcontainer upgrade
# ===========================================================================
upgrade:
description: "Upgrade lockfile"
handler: featuresUpgradeHandler
json_output: false # writes lockfile to disk or stdout with --dry-run
exit_codes: { success: 0, error: 1 }
flags:
workspace-folder:
type: string
required: true
docker-path:
type: string
default: docker
docker-compose-path:
type: string
default: docker-compose
config:
type: string
log-level:
type: choice
choices: [error, info, debug, trace]
default: info
dry-run:
type: boolean
description: "Write generated lockfile to standard out instead of to disk."
feature:
type: string
alias: f
hidden: true
description: "Upgrade the version requirements of a given Feature."
target-version:
type: string
alias: v
hidden: true
description: "The major (x), minor (x.y), or patch version (x.y.z) of the Feature to pin."
log-file:
type: string
description: "Log file path."
terminal-log-file:
type: string
description: "Terminal log file path."
custom_checks:
- "--feature and --target-version must be used together"
- "--target-version must match /^\\d+(\\.\\d+(\\.\\d+)?)?$/"
# ===========================================================================
# COMMAND: devcontainer exec
# ===========================================================================
exec:
description: "Execute a command on a running dev container"
positional: "<cmd> [args..]"
handler: execHandler
json_output: false
exit_codes:
success: 0
error: 1
signal: "128 + signal_number"
flags:
user-data-folder:
type: string
docker-path:
type: string
docker-compose-path:
type: string
container-data-folder:
type: string
container-system-data-folder:
type: string
workspace-folder:
type: string
mount-workspace-git-root:
type: boolean
default: true
mount-git-worktree-common-dir:
type: boolean
default: false
container-id:
type: string
id-label:
type: string
array: true
config:
type: string
override-config:
type: string
log-level:
type: choice
choices: [info, debug, trace]
default: info
log-format:
type: choice
choices: [text, json]
default: text
terminal-columns:
type: number
implies: [terminal-rows]
terminal-rows:
type: number
implies: [terminal-columns]
default-user-env-probe:
type: choice
choices: [none, loginInteractiveShell, interactiveShell, loginShell]
default: loginInteractiveShell
remote-env:
type: string
array: true
skip-feature-auto-mapping:
type: boolean
default: false
hidden: true
log-file:
type: string
description: "Log file path."
terminal-log-file:
type: string
description: "Terminal log file path."
positional_args:
cmd:
type: string
required: true
description: "Command to execute."
args:
type: string
array: true
description: "Arguments to the command."
custom_checks:
- "id-label must match name=value format"
- "remote-env must match name=value format"
- "One of --container-id, --id-label or --workspace-folder is required"
tty_notes: >
If stdin and stdout are TTYs (or log-format is json), a PTY is used.
In that case, terminal dimensions are read from process.stdout.columns/rows
and the 'resize' event is listened for.
# ===========================================================================
# SUBCOMMANDS: devcontainer features *
# ===========================================================================
features:
description: "Features commands"
subcommands:
test:
description: "Test Features"
positional: "[target] (deprecated — use --project-folder)"
handler: featuresTestHandler
exit_codes: { success: 0, error: 1 }
flags:
project-folder:
type: string
alias: p
default: "."
description: "Path to folder containing 'src' and 'test' sub-folders."
features:
type: string
array: true
alias: f
description: "Feature(s) to test as space-separated parameters."
filter:
type: string
description: "Filter current tests to only run scenarios containing this string."
global-scenarios-only:
type: boolean
default: false
skip-scenarios:
type: boolean
default: false
skip-autogenerated:
type: boolean
default: false
skip-duplicated:
type: boolean
default: false
permit-randomization:
type: boolean
default: false
base-image:
type: string
alias: i
default: "ubuntu:focal"
remote-user:
type: string
alias: u
log-level:
type: choice
choices: [info, debug, trace]
default: info
preserve-test-containers:
type: boolean
default: false
quiet:
type: boolean
alias: q
default: false
custom_checks:
- "--global-scenarios-only and --features cannot be combined"
- "--skip-scenarios and --global-scenarios-only cannot be combined"
- "--filter-scenarios and --skip-scenarios cannot be combined"
package:
description: "Package Features"
positional: "<target>"
handler: featuresPackageHandler
flags:
output-folder:
type: string
alias: o
default: "./output"
force-clean-output-folder:
type: boolean
alias: f
default: false
log-level:
type: choice
choices: [info, debug, trace]
default: info
positional_args:
# `target` is a positional argument ([target] in Use), not a pflag flag.
target:
type: string
default: "."
publish:
description: "Package and publish Features"
positional: "<target>"
handler: featuresPublishHandler
flags:
registry:
type: string
alias: r
default: "ghcr.io"
namespace:
type: string
alias: "n"
required: true
description: "Unique identifier for the collection. Example: <owner>/<repo>"
log-level:
type: choice
choices: [info, debug, trace]
default: info
positional_args:
# `target` is a positional argument ([target] in Use), not a pflag flag.
target:
type: string
default: "."
info:
description: "Fetch metadata for a published Feature"
positional: "<mode> <feature>"
handler: featuresInfoHandler
flags:
log-level:
type: choice
choices: [info, debug, trace]
default: info
output-format:
type: choice
choices: [text, json]
default: text
positional_args:
mode:
choices: [manifest, tags, dependencies, verbose]
feature:
type: string
required: true
resolve-dependencies:
description: "Read and resolve dependency graph from a configuration"
handler: featuresResolveDependenciesHandler
flags:
log-level:
type: choice
choices: [error, info, debug, trace]
default: error
workspace-folder:
type: string
required: true
generate-docs:
description: "Generate documentation"
handler: featuresGenerateDocsHandler
flags:
project-folder:
type: string
alias: p
default: "."
registry:
type: string
alias: r
default: "ghcr.io"
namespace:
type: string
alias: "n"
required: true
github-owner:
type: string
default: ""
github-repo:
type: string
default: ""
log-level:
type: choice
choices: [info, debug, trace]
default: info
# ===========================================================================
# SUBCOMMANDS: devcontainer templates *
# ===========================================================================
templates:
description: "Templates commands"
subcommands:
apply:
description: "Apply a template to the project"
handler: templateApplyHandler
flags:
workspace-folder:
type: string
alias: w
required: true
default: "."
template-id:
type: string
alias: t
required: true
template-args:
type: string
alias: a
default: "{}"
description: "Arguments to replace within the provided Template, provided as JSON."
features:
type: string
alias: f
default: "[]"
description: "Features to add to the provided Template, provided as JSON."
log-level:
type: choice
choices: [info, debug, trace]
default: info
tmp-dir:
type: string
description: "Directory to use for temporary files."
omit-paths:
type: string
default: "[]"
description: "List of paths within the Template to omit applying, provided as JSON."
publish:
description: "Package and publish templates"
positional: "<target>"
handler: templatesPublishHandler
flags:
registry:
type: string
alias: r
default: "ghcr.io"
namespace:
type: string
alias: "n"
required: true
log-level: