sim 2.2.20-preview.255.1 → 2.2.20-preview.256.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contract/types.d.ts +5 -0
- package/dist/index.js +8 -2
- package/dist/runtime.js +8 -2
- package/package.json +1 -1
package/dist/contract/types.d.ts
CHANGED
|
@@ -237,6 +237,11 @@ export interface CommandSpec {
|
|
|
237
237
|
command?: string;
|
|
238
238
|
/** Run this operation when its top-level group is invoked without a subcommand. */
|
|
239
239
|
groupDefault?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Run this leaf when its group is named without a subcommand, as the group's default. The group
|
|
242
|
+
* keeps no options of its own, so the leaf parses its options in either spelling.
|
|
243
|
+
*/
|
|
244
|
+
defaultSubcommand?: true;
|
|
240
245
|
/** Alternate leaf command names, such as `ls` for `list`. */
|
|
241
246
|
aliases?: readonly string[];
|
|
242
247
|
/**
|
package/dist/index.js
CHANGED
|
@@ -20138,6 +20138,7 @@ var CLI_CONTRACT = {
|
|
|
20138
20138
|
]
|
|
20139
20139
|
},
|
|
20140
20140
|
listCredentialProviders: {
|
|
20141
|
+
defaultSubcommand: true,
|
|
20141
20142
|
columns: [
|
|
20142
20143
|
{ header: "type" },
|
|
20143
20144
|
{ header: "service", path: "serviceId" },
|
|
@@ -22551,16 +22552,21 @@ function addLeafCommand(groups, operation, spec, segments) {
|
|
|
22551
22552
|
for (const segment of rest.slice(0, -1)) {
|
|
22552
22553
|
parent = nestedGroup(parent, segment);
|
|
22553
22554
|
}
|
|
22554
|
-
parent.addCommand(buildLeaf(operation, spec, rest[rest.length - 1])
|
|
22555
|
+
parent.addCommand(buildLeaf(operation, spec, rest[rest.length - 1]), {
|
|
22556
|
+
isDefault: spec.defaultSubcommand === true
|
|
22557
|
+
});
|
|
22555
22558
|
return;
|
|
22556
22559
|
}
|
|
22557
|
-
group.addCommand(buildLeaf(operation, spec, rest[0])
|
|
22560
|
+
group.addCommand(buildLeaf(operation, spec, rest[0]), {
|
|
22561
|
+
isDefault: spec.defaultSubcommand === true
|
|
22562
|
+
});
|
|
22558
22563
|
}
|
|
22559
22564
|
function variantCommandSpec(spec, variant) {
|
|
22560
22565
|
return {
|
|
22561
22566
|
...spec,
|
|
22562
22567
|
command: variant.command,
|
|
22563
22568
|
groupDefault: false,
|
|
22569
|
+
defaultSubcommand: undefined,
|
|
22564
22570
|
aliases: [],
|
|
22565
22571
|
positionals: variant.positionals,
|
|
22566
22572
|
requestFields: variant.requestFields,
|
package/dist/runtime.js
CHANGED
|
@@ -20187,6 +20187,7 @@ var CLI_CONTRACT = {
|
|
|
20187
20187
|
]
|
|
20188
20188
|
},
|
|
20189
20189
|
listCredentialProviders: {
|
|
20190
|
+
defaultSubcommand: true,
|
|
20190
20191
|
columns: [
|
|
20191
20192
|
{ header: "type" },
|
|
20192
20193
|
{ header: "service", path: "serviceId" },
|
|
@@ -22600,16 +22601,21 @@ function addLeafCommand(groups, operation, spec, segments) {
|
|
|
22600
22601
|
for (const segment of rest.slice(0, -1)) {
|
|
22601
22602
|
parent = nestedGroup(parent, segment);
|
|
22602
22603
|
}
|
|
22603
|
-
parent.addCommand(buildLeaf(operation, spec, rest[rest.length - 1])
|
|
22604
|
+
parent.addCommand(buildLeaf(operation, spec, rest[rest.length - 1]), {
|
|
22605
|
+
isDefault: spec.defaultSubcommand === true
|
|
22606
|
+
});
|
|
22604
22607
|
return;
|
|
22605
22608
|
}
|
|
22606
|
-
group.addCommand(buildLeaf(operation, spec, rest[0])
|
|
22609
|
+
group.addCommand(buildLeaf(operation, spec, rest[0]), {
|
|
22610
|
+
isDefault: spec.defaultSubcommand === true
|
|
22611
|
+
});
|
|
22607
22612
|
}
|
|
22608
22613
|
function variantCommandSpec(spec, variant) {
|
|
22609
22614
|
return {
|
|
22610
22615
|
...spec,
|
|
22611
22616
|
command: variant.command,
|
|
22612
22617
|
groupDefault: false,
|
|
22618
|
+
defaultSubcommand: undefined,
|
|
22613
22619
|
aliases: [],
|
|
22614
22620
|
positionals: variant.positionals,
|
|
22615
22621
|
requestFields: variant.requestFields,
|