@devicecloud.dev/dcd 0.0.1-alpha.4 → 0.0.1-alpha.5
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/commands/cloud.d.ts +2 -0
- package/dist/commands/cloud.js +16 -4
- package/dist/plan.js +1 -1
- package/oclif.manifest.json +22 -6
- package/package.json +1 -1
package/dist/commands/cloud.d.ts
CHANGED
|
@@ -13,8 +13,10 @@ export default class Cloud extends Command {
|
|
|
13
13
|
appBinaryId: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
14
14
|
appFile: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
15
15
|
env: import("@oclif/core/lib/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
16
|
+
excludeTags: import("@oclif/core/lib/interfaces").OptionFlag<string[], import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
16
17
|
flows: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
17
18
|
iOSVersion: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
19
|
+
includeTags: import("@oclif/core/lib/interfaces").OptionFlag<string[], import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
18
20
|
};
|
|
19
21
|
run(): Promise<void>;
|
|
20
22
|
}
|
package/dist/commands/cloud.js
CHANGED
|
@@ -108,13 +108,18 @@ class Cloud extends core_1.Command {
|
|
|
108
108
|
description: 'App binary to run your Flows against',
|
|
109
109
|
}),
|
|
110
110
|
env: core_1.Flags.file({
|
|
111
|
-
aliases: ['env'],
|
|
112
111
|
char: 'e',
|
|
113
112
|
description: 'One or more environment variables to inject into your Flows',
|
|
114
113
|
multiple: true,
|
|
115
114
|
}),
|
|
115
|
+
excludeTags: core_1.Flags.string({
|
|
116
|
+
aliases: ['exclude-tags'],
|
|
117
|
+
default: [],
|
|
118
|
+
description: 'Flows which have these tags will be excluded from the run',
|
|
119
|
+
multiple: true,
|
|
120
|
+
parse: (input) => input.split(','),
|
|
121
|
+
}),
|
|
116
122
|
flows: core_1.Flags.string({
|
|
117
|
-
aliases: ['flows'],
|
|
118
123
|
description: 'The path to the flow file or folder containing your Flows',
|
|
119
124
|
}),
|
|
120
125
|
iOSVersion: core_1.Flags.string({
|
|
@@ -122,10 +127,17 @@ class Cloud extends core_1.Command {
|
|
|
122
127
|
description: 'iOS version to run your flow against',
|
|
123
128
|
options: ['16.4', '17.2'],
|
|
124
129
|
}),
|
|
130
|
+
includeTags: core_1.Flags.string({
|
|
131
|
+
aliases: ['include-tags'],
|
|
132
|
+
default: [],
|
|
133
|
+
description: 'Only Flows which have these tags will be included in the run',
|
|
134
|
+
multiple: true,
|
|
135
|
+
parse: (input) => input.split(','),
|
|
136
|
+
}),
|
|
125
137
|
};
|
|
126
138
|
async run() {
|
|
127
139
|
const { args, flags } = await this.parse(Cloud);
|
|
128
|
-
const { apiKey, apiUrl, appBinaryId, appFile, env, flows, ...rest } = flags;
|
|
140
|
+
const { apiKey, apiUrl, appBinaryId, appFile, env, excludeTags, flows, includeTags, ...rest } = flags;
|
|
129
141
|
console.log({ args });
|
|
130
142
|
const { firstFile, secondFile } = args;
|
|
131
143
|
let finalBinaryId = appBinaryId;
|
|
@@ -172,7 +184,7 @@ class Cloud extends core_1.Command {
|
|
|
172
184
|
let flowFileDirectory = flowFile;
|
|
173
185
|
if (!flowFile?.endsWith('.yaml') && !flowFile?.endsWith('.yml')) {
|
|
174
186
|
try {
|
|
175
|
-
const executionPlan = await (0, plan_1.plan)(flowFile,
|
|
187
|
+
const executionPlan = await (0, plan_1.plan)(flowFile, includeTags.flat(), excludeTags.flat());
|
|
176
188
|
for (const file of executionPlan.flowsToRun) {
|
|
177
189
|
testFileNames.push(file);
|
|
178
190
|
}
|
package/dist/plan.js
CHANGED
|
@@ -39,7 +39,7 @@ const readConfigFromYamlFileAsJson = (filePath) => {
|
|
|
39
39
|
if (yamlText.includes('\n---\n')) {
|
|
40
40
|
const yamlTexts = yamlText.split('\n---\n');
|
|
41
41
|
const config = yaml.load(yamlTexts[0]);
|
|
42
|
-
if (Object.keys(config).
|
|
42
|
+
if (Object.keys(config).length > 0) {
|
|
43
43
|
return config;
|
|
44
44
|
}
|
|
45
45
|
}
|
package/oclif.manifest.json
CHANGED
|
@@ -77,9 +77,6 @@
|
|
|
77
77
|
"type": "option"
|
|
78
78
|
},
|
|
79
79
|
"env": {
|
|
80
|
-
"aliases": [
|
|
81
|
-
"env"
|
|
82
|
-
],
|
|
83
80
|
"char": "e",
|
|
84
81
|
"description": "One or more environment variables to inject into your Flows",
|
|
85
82
|
"name": "env",
|
|
@@ -87,10 +84,18 @@
|
|
|
87
84
|
"multiple": true,
|
|
88
85
|
"type": "option"
|
|
89
86
|
},
|
|
90
|
-
"
|
|
87
|
+
"excludeTags": {
|
|
91
88
|
"aliases": [
|
|
92
|
-
"
|
|
89
|
+
"exclude-tags"
|
|
93
90
|
],
|
|
91
|
+
"description": "Flows which have these tags will be excluded from the run",
|
|
92
|
+
"name": "excludeTags",
|
|
93
|
+
"default": [],
|
|
94
|
+
"hasDynamicHelp": false,
|
|
95
|
+
"multiple": true,
|
|
96
|
+
"type": "option"
|
|
97
|
+
},
|
|
98
|
+
"flows": {
|
|
94
99
|
"description": "The path to the flow file or folder containing your Flows",
|
|
95
100
|
"name": "flows",
|
|
96
101
|
"hasDynamicHelp": false,
|
|
@@ -110,6 +115,17 @@
|
|
|
110
115
|
"17.2"
|
|
111
116
|
],
|
|
112
117
|
"type": "option"
|
|
118
|
+
},
|
|
119
|
+
"includeTags": {
|
|
120
|
+
"aliases": [
|
|
121
|
+
"include-tags"
|
|
122
|
+
],
|
|
123
|
+
"description": "Only Flows which have these tags will be included in the run",
|
|
124
|
+
"name": "includeTags",
|
|
125
|
+
"default": [],
|
|
126
|
+
"hasDynamicHelp": false,
|
|
127
|
+
"multiple": true,
|
|
128
|
+
"type": "option"
|
|
113
129
|
}
|
|
114
130
|
},
|
|
115
131
|
"hasDynamicHelp": false,
|
|
@@ -128,5 +144,5 @@
|
|
|
128
144
|
]
|
|
129
145
|
}
|
|
130
146
|
},
|
|
131
|
-
"version": "0.0.1-alpha.
|
|
147
|
+
"version": "0.0.1-alpha.5"
|
|
132
148
|
}
|
package/package.json
CHANGED