-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathpulumi.ts
1348 lines (1328 loc) · 39.5 KB
/
pulumi.ts
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
const stacksGenerator: Fig.Generator = {
cache: {
cacheByDirectory: true,
},
script: ["pulumi", "stack", "ls", "--json"],
postProcess: (out) => {
try {
return JSON.parse(out).map((stack) => ({
name: stack.name,
description: stack.description,
}));
} catch (e) {
return [];
}
},
};
const stackOption: Fig.Option = {
name: ["-s", "--stack"],
description:
"The name of the stack to operate on. Defaults to the current stack",
args: {
name: "stack-name",
generators: stacksGenerator,
},
};
const yesOption: Fig.Option = {
name: ["-y", "--yes"],
description:
"Skip confirmation prompts, and proceed with cancellation anyway",
isDangerous: true,
};
const jsonOption: Fig.Option = {
name: ["-j", "--json"],
description: "Emit output as JSON",
};
const configFileOption: Fig.Option = {
name: "--config-file",
description:
"Use the configuration values in the specified file rather than detecting the file name",
args: {
name: "file",
template: ["filepaths", "folders"],
},
};
const messageOption: Fig.Option = {
name: ["-m", "--message"],
description: "Optional message to associate with the destroy operation",
args: { name: "message" },
};
const parallelOption: Fig.Option = {
name: ["-p", "--parallel"],
description:
"Allow P resource operations to run in parallel at once (1 for no parallelism). Defaults to unbounded. (default 2147483647)",
args: {
name: "int",
default: "1",
suggestions: ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
},
};
const diffOption: Fig.Option = {
name: "--diff",
description: "Display operation as a rich diff showing the overall change",
};
const debugOption: Fig.Option = {
name: ["-d", "--debug"],
description: "Print detailed debugging output during resource operations",
};
const localOption: Fig.Option = {
name: ["-l", "--local"],
description: "Use Pulumi in local-only mode",
};
const skipPreview: Fig.Option = {
name: ["-f", "--skip-preview"],
description: "Do not perform a preview before performing the destroy",
};
const targetOption: Fig.Option = {
name: ["-t", "--target"],
description:
"Specify a single resource URN to destroy. All resources necessary to destroy this target will also be destroyed. Multiple resources can be specified using: --target urn1 --target urn2",
args: { name: "stringArray" },
};
const pathOption: Fig.Option = {
name: "--path",
description: "The key contains a path to a property in a map or list to set",
};
const pathsOption: Fig.Option = {
name: "--path",
description:
"Parse the keys as paths in a map or list rather than raw strings",
};
const suppressPermalinkOption: Fig.Option = {
name: "--suppress-permalink",
description: "Suppress display of the state permalink",
args: {
name: "bool",
default: "false",
suggestions: ["false", "true"],
},
};
const secretsProviderOption: Fig.Option = {
name: "--secrets-provider",
description:
'The type of the provider that should be used to encrypt and decrypt secrets (possible choices: default, passphrase, awskms, azurekeyvault, gcpkms, hashivault) (default "default")',
args: {
name: "providerType",
default: "default",
suggestions: [
"default",
"passphrase",
"awskms",
"azurekeyvault",
"gcpkms",
"hashivault",
],
},
};
const inheritedOptions: Fig.Option[] = [
{
name: "--color",
description:
'Colorize output. Choices are: always, never, raw, auto (default "auto")',
args: {
name: "mode",
default: "auto",
suggestions: ["always", "never", "raw", "auto"],
},
},
{
name: ["-C", "--cwd"],
description: "Run pulumi as if it had been started in another directory",
args: {
name: "path",
template: ["folders"],
},
},
{
name: "--disable-integrity-checking",
description: "Disable integrity checking of checkpoint files",
},
{
name: ["-e", "--emoji"],
description: "Enable emojis in the output",
},
{
name: "--logflow",
description: "Flow log settings to child processes (like plugins)",
},
{
name: "--logtostderr",
description: "Log to stderr instead of to files",
},
{
name: "--non-interactive",
description: "Disable interactive mode for all commands",
},
{
name: "--profiling",
description:
"Emit CPU and memory profiles and an execution trace to '[filename].[pid].{cpu,mem,trace}', respectively",
},
{
name: "--tracing",
description:
"Emit tracing to the specified endpoint. Use the file: scheme to write tracing data to a local file",
args: {
name: "file",
},
},
{
name: ["-v", "--verbose"],
description:
"Enable verbose logging (e.g., v=3); anything >3 is very verbose",
args: {
name: "int",
default: "3",
suggestions: ["1", "2", "3", "4", "5"],
},
},
];
const upDestroyOptions: Fig.Option[] = [
stackOption,
parallelOption,
messageOption,
diffOption,
debugOption,
configFileOption,
suppressPermalinkOption,
targetOption,
{
name: ["-j", "--json"],
description:
"Serialize the update diffs, operations, and overall output as JSON",
},
{
name: ["-r", "--refresh"],
description:
"Refresh the state of the stack's resources before this update",
args: {
name: "bool",
default: "true",
suggestions: ["false", "true"],
},
},
{
name: "--show-config",
description: "Show configuration keys and variables",
},
{
name: "--show-replacement-steps",
description:
"Show detailed resource replacement creates and deletes instead of a single step",
},
{
name: "--show-sames",
description:
"Show resources that don't need to be updated because they haven't changed, alongside those that do",
},
{
name: "--suppress-outputs",
description:
"Suppress display of stack outputs (in case they contain sensitive values)",
},
{
name: "--target-dependents",
description:
"Allows destroying of dependent targets discovered but not specified in --target list",
},
];
const icon = "https://www.pulumi.com/logos/brand/avatar-on-white.svg";
const completionSpec: Fig.Spec = {
name: "pulumi",
description:
"Pulumi's open source infrastructure as code SDK enables you to create, deploy, and manage infrastructure on any cloud, using your favorite languages",
subcommands: [
{
name: "about",
description: "Print information about the Pulumi environment",
icon,
options: [
...inheritedOptions,
jsonOption,
{
name: ["-t", "--transitive"],
description: "Include transitive dependencies",
},
],
},
{
name: "cancel",
description: "Cancel a stack’s currently running update, if any",
options: [...inheritedOptions, yesOption, stackOption],
},
{
name: "config",
description: "Manage configuration",
subcommands: [
{
name: "cp",
description: "Copy config to another stack",
options: [
...inheritedOptions,
pathOption,
{
name: ["-d", "--dest"],
description: "The name of the new stack to copy the config to",
args: {
name: "stack-name",
generators: stacksGenerator,
},
},
],
},
{
name: "get",
description: "Get a single configuration value",
args: {
name: "key",
},
options: [
...inheritedOptions,
jsonOption,
{
name: "--path",
description:
"The key contains a path to a property in a map or list to get",
},
],
},
{
name: "refresh",
description:
"Update the local configuration based on the most recent deployment of the stack",
options: [
...inheritedOptions,
{
name: ["-f", "--force"],
description:
"Overwrite configuration file, if it exists, without creating a backup",
isDangerous: true,
},
],
},
{
name: "rm",
description: "Remove configuration value",
args: { name: "key" },
options: [
...inheritedOptions,
{
name: "--path",
description:
"The key contains a path to a property in a map or list to remove",
},
],
},
{
name: "rm-all",
description: "Remove multiple configuration values",
args: {
name: "key",
isVariadic: true,
},
options: [...inheritedOptions, pathsOption],
},
{
name: "set",
description: "Set configuration value",
args: [
{
name: "key",
},
{
name: "value",
},
],
options: [
...inheritedOptions,
pathOption,
{
name: "--plaintext",
description: "Save the value as plaintext (unencrypted)",
},
{
name: "--secret",
description:
"Encrypt the value instead of storing it in plaintext",
},
],
},
{
name: "set-all",
description: "Set multiple configuration values",
args: {
name: "key value",
},
options: [
...inheritedOptions,
pathsOption,
{
name: "--plaintext",
description: "Marks a value as plaintext (unencrypted)",
args: {
name: "stringArray",
},
},
{
name: "--secret",
description: "Marks a value as secret to be encrypted",
args: {
name: "stringArray",
},
},
],
},
],
options: [
...inheritedOptions,
jsonOption,
stackOption,
configFileOption,
{
name: "--show-secrets",
description:
"Show secret values when listing config instead of displaying blinded values",
},
],
},
{
name: "console",
description: "Opens the current stack in the Pulumi Console",
options: [...inheritedOptions, stackOption],
},
{
name: "destroy",
description: "Destroy an existing stack and its resources",
options: [
...inheritedOptions,
...upDestroyOptions,
yesOption,
skipPreview,
{
name: "--exclude-protected",
description:
"Do not destroy protected resources. Destroy all other resources",
},
],
},
{
name: "import",
description: "Import resources into an existing stack",
options: [
...inheritedOptions,
configFileOption,
debugOption,
diffOption,
messageOption,
parallelOption,
stackOption,
yesOption,
skipPreview,
suppressPermalinkOption,
{
name: ["-f", "--file"],
description:
"The path to a JSON-encoded file containing a list of resources to import",
args: { name: "file", template: ["filepaths"] },
},
{
name: ["-o", "--out"],
description:
"The path to the file that will contain the generated resource declarations",
args: { name: "file" },
},
{
name: "--parent",
description:
"The name and URN of the parent resource in the format name=urn, where name is the variable name of the parent resource",
args: { name: "[name=urn]" },
},
{
name: "--protect",
description:
"Allow resources to be imported with protection from deletion enabled (default true)",
},
{
name: "--provider",
description:
"The name and URN of the provider to use for the import in the format name=urn, where name is the variable name for the provider resourceƒ",
args: { name: "[name=urn]" },
},
{
name: "--suppress-outputs",
description:
"Suppress display of stack outputs (in case they contain sensitive values)",
},
],
args: [{ name: "type" }, { name: "name" }, { name: "id" }],
},
{
name: "login",
description: "Log in to the Pulumi service",
options: [
...inheritedOptions,
localOption,
{
name: ["-c", "--cloud-url"],
description: "A cloud URL to log in to",
args: { name: "url" },
},
{
name: "--default-org",
description:
"A default org to associate with the login. Please note, currently, only the managed and self-hosted backends support organizations",
args: { name: "name" },
},
],
args: { name: "url" },
},
{
name: "logout",
description: "Log out of the Pulumi service",
options: [
...inheritedOptions,
localOption,
{
name: "--all",
description: "Logout of all backends",
},
{
name: ["-c", "--cloud-url"],
description: "A cloud URL to log out of (defaults to current cloud)",
args: { name: "url" },
},
],
args: { name: "url" },
},
{
name: "logs",
description: "[PREVIEW] Show aggregated resource logs for a stack",
options: [
...inheritedOptions,
configFileOption,
stackOption,
jsonOption,
{
name: ["-f", "--follow"],
description: "Follow the log stream in real time (like tail -f)",
},
{
name: ["-r", "--resource"],
description:
"Only return logs for the requested resource ('name', 'type::name' or full URN). Defaults to returning all logs",
args: { name: "name" },
},
{
name: "--since",
description:
"Only return logs newer than a relative duration ('5s', '2m', '3h') or absolute timestamp. Defaults to returning the last 1 hour of logs. (default \"1h\")",
args: {
name: "duration",
default: "1h",
suggestions: ["5s", "2m", "3h"],
},
},
],
},
{
name: "new",
description: "Create a new Pulumi project",
options: [
...inheritedOptions,
stackOption,
yesOption,
secretsProviderOption,
{
name: ["-c", "--config"],
description: "Config to save",
args: { name: "stringArray" },
},
{
name: "--config-path",
description:
"Config keys contain a path to a property in a map or list to set",
},
{
name: ["-d", "--description"],
description:
"The project description; if not specified, a prompt will request it",
args: { name: "desc" },
},
{
name: "--dir",
description:
"The location to place the generated project; if not specified, the current directory is used",
args: { name: "location", template: ["folders"] },
},
{
name: ["-f", "--force"],
isDangerous: true,
description:
"Forces content to be generated even if it would change existing files",
},
{
name: ["-g", "--generate-only"],
description:
"Generate the project only; do not create a stack, save config, or install dependencies",
},
{
name: ["-n", "--name"],
description:
"The project name; if not specified, a prompt will request it",
args: { name: "projectName" },
},
{
name: ["-o", "--offline"],
description:
"Use locally cached templates without making any network requests",
},
],
},
{
name: "org",
description: "Manage Organization configuration",
subcommands: [
{
name: "get-default",
description: "Get the default org for the current backend",
},
{
name: "set-default",
description: "Set the default organization for the current backend",
args: { name: "NAME" },
},
],
options: inheritedOptions,
},
{
name: "plugin",
description: "Manage language and resource provider plugins",
subcommands: [
{
name: "install",
description: "Install one or more plugins",
options: [
...inheritedOptions,
{
name: "--exact",
description:
"Force installation of an exact version match (usually >= is accepted)",
},
{
name: ["-f", "--file"],
description:
"Install a plugin from a tarball file, instead of downloading it",
args: { name: "file", template: ["filepaths"] },
},
{
name: "--reinstall",
description: "Reinstall a plugin even if it already exists",
},
{
name: "--server",
description: "A URL to download plugins from",
args: { name: "url" },
},
],
},
{
name: "ls",
description: "List plugins",
options: [
...inheritedOptions,
jsonOption,
{
name: ["-p", "--project"],
description: "List only the plugins used by the current project",
},
],
},
{
name: "rm",
description: "Remove one or more plugins from the download cache",
options: [
...inheritedOptions,
yesOption,
{
name: ["-a", "--all"],
description: "Remove all plugins",
},
],
},
],
options: inheritedOptions,
},
{
name: "policy",
description: "Manage resource policies",
options: inheritedOptions,
subcommands: [
{
name: "disable",
description: "Disable a Policy Pack for a Pulumi organization",
args: { name: "org-name/policy-pack-name" },
options: [
...inheritedOptions,
{
name: "--policy-group",
description:
"The Policy Group for which the Policy Pack will be disabled; if not specified, the default Policy Group is used",
args: { name: "policyGroup" },
},
{
name: "--version",
description:
"The version of the Policy Pack that will be disabled; if not specified, any enabled version of the Policy Pack will be disabled",
args: { name: "policyPackVersion" },
},
],
},
{
name: "enable",
description: "Enable a Policy Pack for a Pulumi organization",
args: { name: "org-name/policy-pack-name" },
options: [
...inheritedOptions,
{
name: "--policy-group",
description:
"The Policy Group for which the Policy Pack will be enabled; if not specified, the default Policy Group is used",
args: { name: "policyGroup" },
},
{
name: "--config",
description:
"The file path for the Policy Pack configuration file",
args: { name: "file" },
},
],
},
{
name: "group",
description: "Manage policy groups",
options: inheritedOptions,
},
{
name: "ls",
description: "List all Policy Packs for a Pulumi organization",
args: { name: "org-name" },
options: [...inheritedOptions, jsonOption],
},
{
name: "new",
description: "Create a new Pulumi Policy Pack",
args: { name: "template|url" },
options: [
...inheritedOptions,
jsonOption,
{
name: ["-o", "--offline"],
description:
"Use locally cached templates without making any network requests",
},
{
name: ["-g", "--generate-only"],
description:
"Generate the Policy Pack only; do not install dependencies",
},
{
name: ["-f", "--force"],
isDangerous: true,
description:
"Forces content to be generated even if it would change existing files",
},
{
name: "--dir",
description:
"The location to place the generated Policy Pack; if not specified, the current directory is used",
args: { name: "location", template: ["folders"] },
},
],
},
{
name: "publish",
description: "Publish a Policy Pack to the Pulumi service",
args: { name: "org-name" },
options: inheritedOptions,
},
{
name: "rm",
description: "Removes a Policy Pack from a Pulumi organization",
args: { name: "org-name/policy-pack-name" },
options: [...inheritedOptions, yesOption],
},
{
name: "validate-config",
description: "Validate a Policy Pack configuration",
args: { name: "org-name/policy-pack-name" },
options: [
...inheritedOptions,
{
name: "--config",
description:
"The file path for the Policy Pack configuration file",
args: { name: "file" },
},
],
},
],
},
{
name: "preview",
description: "Show a preview of updates to a stack’s resources",
options: [
...inheritedOptions,
...upDestroyOptions,
{
name: ["-c", "--config"],
description: "Config to use during the preview",
args: { name: "stringArray" },
},
{
name: "--config-path",
description:
"Config keys contain a path to a property in a map or list to set",
},
{
name: "--expect-no-changes",
description:
"Return an error if any changes are proposed by this preview",
},
{
name: "--policy-pack",
description: "Run one or more policy packs as part of this update",
args: { name: "strings" },
},
{
name: "--policy-pack-config",
description:
'Path to JSON file containing the config for the policy pack of the corresponding"--policy-pack" flag',
args: { name: "strings" },
},
{
name: "--replace",
description:
"Specify resources to replace. Multiple resources can be specified using --replace urn1 --replace urn2",
args: { name: "stringArray" },
},
{
name: "--show-reads",
description:
"Show resources that are being read in, alongside those being managed directly in the stack",
},
{
name: "--target-replace",
description:
"Specify a single resource URN to replace. Other resources will not be updated. Shorthand for --target urn --replace urn",
args: { name: "stringArray" },
},
],
},
{
name: "refresh",
description: "Refresh the resources in a stack",
options: [
...inheritedOptions,
configFileOption,
debugOption,
diffOption,
messageOption,
parallelOption,
skipPreview,
stackOption,
yesOption,
suppressPermalinkOption,
targetOption,
{
name: ["-j", "--json"],
description:
"Serialize the refresh diffs, operations, and overall output as JSON",
},
{
name: "--expect-no-changes",
description:
"Return an error if any changes occur during this update",
},
{
name: "--show-replacement-steps",
description:
"Show detailed resource replacement creates and deletes instead of a single step",
},
{
name: "--show-sames",
description:
"Show resources that needn't be updated because they haven't changed, alongside those that do",
},
{
name: "--suppress-outputs",
description:
"Suppress display of stack outputs (in case they contain sensitive values)",
},
],
},
{
name: "schema",
description: "Analyze package schemas",
options: inheritedOptions,
subcommands: [
{
name: "check",
description: "Check a Pulumi package schema for errors",
},
],
},
{
name: "stack",
description: "Manage stacks",
options: [
...inheritedOptions,
stackOption,
{ name: "--show-name", description: "Display only the stack name" },
{
name: "--show-secrets",
description:
"Display stack outputs which are marked as secret in plaintext",
},
{
name: ["-i", "--show-ids"],
description: "Display each resource's provider-assigned unique ID",
},
{
name: ["-u", "--show-urns"],
description:
"Display each resource's Pulumi-assigned globally unique URN",
},
],
subcommands: [
{
name: "change-secrets-provider",
description: "Change the secrets provider for the current stack",
args: { name: "new-secrets-provider" },
options: inheritedOptions,
},
{
name: "export",
description: "Export a stack’s deployment to standard out",
options: [
...inheritedOptions,
{
name: "--file",
description: "A filename to write stack output to",
args: { name: "file" },
},
{
name: "--show-secrets",
description:
"Emit secrets in plaintext in exported stack. Defaults to false",
args: {
name: "bool",
default: "false",
suggestions: ["false", "true"],
},
},
{
name: "--version",
description:
"Previous stack version to export. (If unset, will export the latest)",
},
],
},
{
name: "graph",
description: "Export a stack’s dependency graph to a file",
args: { name: "filename" },
options: [
...inheritedOptions,
{
name: "--dependency-edge-color",
description:
'Sets the color of dependency edges in the graph (default "#246C60")',
args: { name: "color", default: "#246C60" },
},
{
name: "--ignore-dependency-edges",
description:
"Ignores edges introduced by dependency resource relationships",
},
{
name: "--ignore-parent-edges",
description:
"Ignores edges introduced by parent/child resource relationships",
},
{
name: "--parent-edge-color",
description:
'Sets the color of parent edges in the graph (default #AA6639")',
args: { name: "color", default: "#246C60" },
},
],
},
{
name: "history",
description: "[PREVIEW] Display history for a stack",
options: [
...inheritedOptions,
jsonOption,
{
name: "--full-dates",
description: "Show full dates, instead of relative dates",
},
{
name: "--page",
description:
"Used with 'page-size' to paginate results (default 1)",
args: { name: "int", default: "1" },
},
{
name: "--page-size",
description:
"Used with 'page' to control number of results returned (default 10)",
args: { name: "int", default: "10" },
},