@flowscripter/dynamic-cli-framework 8.0.0 → 8.0.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subCommandValuePopulation.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/subCommandValuePopulation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,yCAAyC,CAAC;AAGjD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"subCommandValuePopulation.d.ts","sourceRoot":"","sources":["../../../../src/runtime/values/subCommandValuePopulation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,yCAAyC,CAAC;AAGjD,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,4BAA4B,CAAC;AAsjBlF;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,aAAa,CAAC,MAAM,CAAC,EACpC,aAAa,EAAE,eAAe,GAAG,SAAS,GACzC,+BAA+B,CAkEjC"}
|
|
@@ -131,6 +131,7 @@ class ParseContext {
|
|
|
131
131
|
const complexAndArrayPathElements = [];
|
|
132
132
|
let option = undefined;
|
|
133
133
|
let currentValue = this.populatedArgumentValues;
|
|
134
|
+
let lookupPath = this.subCommand.name;
|
|
134
135
|
for (let i = 0; i < complexPathElements.length; i++) {
|
|
135
136
|
let arrayIndexString;
|
|
136
137
|
let complexPathElement = complexPathElements[i];
|
|
@@ -140,7 +141,6 @@ class ParseContext {
|
|
|
140
141
|
.slice(0, complexPathElement.length - 1)
|
|
141
142
|
.split("[");
|
|
142
143
|
}
|
|
143
|
-
let lookupPath = this.subCommand.name;
|
|
144
144
|
// root option navigation
|
|
145
145
|
if (i === 0) {
|
|
146
146
|
if (complexPathElement.startsWith("--")) {
|
|
@@ -164,7 +164,7 @@ class ParseContext {
|
|
|
164
164
|
complexPathElement = option.name;
|
|
165
165
|
} // complex option property navigation
|
|
166
166
|
else {
|
|
167
|
-
lookupPath = `${lookupPath}
|
|
167
|
+
lookupPath = `${lookupPath}.${option.name}`;
|
|
168
168
|
// lazy creation of nested option paths to options
|
|
169
169
|
if (!this.optionLookupMapsByPath.has(lookupPath)) {
|
|
170
170
|
const properties = option.properties;
|
package/package.json
CHANGED
|
@@ -168,6 +168,7 @@ class ParseContext {
|
|
|
168
168
|
| PopulatedValueType
|
|
169
169
|
| undefined = this.populatedArgumentValues;
|
|
170
170
|
|
|
171
|
+
let lookupPath = this.subCommand.name;
|
|
171
172
|
for (let i = 0; i < complexPathElements.length; i++) {
|
|
172
173
|
let arrayIndexString: string | undefined;
|
|
173
174
|
let complexPathElement = complexPathElements[i]!;
|
|
@@ -179,8 +180,6 @@ class ParseContext {
|
|
|
179
180
|
.split("[") as [string, string | undefined];
|
|
180
181
|
}
|
|
181
182
|
|
|
182
|
-
let lookupPath = this.subCommand.name;
|
|
183
|
-
|
|
184
183
|
// root option navigation
|
|
185
184
|
if (i === 0) {
|
|
186
185
|
if (complexPathElement.startsWith("--")) {
|
|
@@ -205,7 +204,7 @@ class ParseContext {
|
|
|
205
204
|
complexPathElement = option.name;
|
|
206
205
|
} // complex option property navigation
|
|
207
206
|
else {
|
|
208
|
-
lookupPath = `${lookupPath}
|
|
207
|
+
lookupPath = `${lookupPath}.${option!.name}`;
|
|
209
208
|
|
|
210
209
|
// lazy creation of nested option paths to options
|
|
211
210
|
if (!this.optionLookupMapsByPath.has(lookupPath)) {
|