appium 3.2.2 → 3.3.0
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/build/lib/cli/args.d.ts +16 -12
- package/build/lib/cli/args.d.ts.map +1 -1
- package/build/lib/cli/args.js +15 -35
- package/build/lib/cli/args.js.map +1 -1
- package/build/lib/cli/driver-command.d.ts +51 -93
- package/build/lib/cli/driver-command.d.ts.map +1 -1
- package/build/lib/cli/driver-command.js +11 -66
- package/build/lib/cli/driver-command.js.map +1 -1
- package/build/lib/cli/extension-command.d.ts +211 -415
- package/build/lib/cli/extension-command.d.ts.map +1 -1
- package/build/lib/cli/extension-command.js +384 -653
- package/build/lib/cli/extension-command.js.map +1 -1
- package/build/lib/cli/extension.d.ts +11 -16
- package/build/lib/cli/extension.d.ts.map +1 -1
- package/build/lib/cli/extension.js +10 -28
- package/build/lib/cli/extension.js.map +1 -1
- package/build/lib/cli/parser.d.ts +40 -69
- package/build/lib/cli/parser.d.ts.map +1 -1
- package/build/lib/cli/parser.js +24 -59
- package/build/lib/cli/parser.js.map +1 -1
- package/build/lib/cli/plugin-command.d.ts +50 -90
- package/build/lib/cli/plugin-command.d.ts.map +1 -1
- package/build/lib/cli/plugin-command.js +11 -63
- package/build/lib/cli/plugin-command.js.map +1 -1
- package/build/lib/cli/setup-command.d.ts +21 -26
- package/build/lib/cli/setup-command.d.ts.map +1 -1
- package/build/lib/cli/setup-command.js +13 -55
- package/build/lib/cli/setup-command.js.map +1 -1
- package/build/lib/cli/utils.d.ts +27 -29
- package/build/lib/cli/utils.d.ts.map +1 -1
- package/build/lib/cli/utils.js +29 -31
- package/build/lib/cli/utils.js.map +1 -1
- package/build/lib/config-file.d.ts +24 -67
- package/build/lib/config-file.d.ts.map +1 -1
- package/build/lib/config-file.js +56 -115
- package/build/lib/config-file.js.map +1 -1
- package/build/lib/config.d.ts +42 -44
- package/build/lib/config.d.ts.map +1 -1
- package/build/lib/config.js +75 -107
- package/build/lib/config.js.map +1 -1
- package/build/lib/constants.d.ts +23 -23
- package/build/lib/constants.d.ts.map +1 -1
- package/build/lib/constants.js +10 -15
- package/build/lib/constants.js.map +1 -1
- package/build/lib/doctor/doctor.d.ts +40 -57
- package/build/lib/doctor/doctor.d.ts.map +1 -1
- package/build/lib/doctor/doctor.js +29 -60
- package/build/lib/doctor/doctor.js.map +1 -1
- package/build/lib/grid-register.d.ts +32 -7
- package/build/lib/grid-register.d.ts.map +1 -1
- package/build/lib/grid-register.js +84 -48
- package/build/lib/grid-register.js.map +1 -1
- package/build/lib/logsink.d.ts +13 -22
- package/build/lib/logsink.d.ts.map +1 -1
- package/build/lib/logsink.js +48 -103
- package/build/lib/logsink.js.map +1 -1
- package/build/lib/main.js +1 -1
- package/build/lib/main.js.map +1 -1
- package/build/lib/schema/arg-spec.d.ts +32 -107
- package/build/lib/schema/arg-spec.d.ts.map +1 -1
- package/build/lib/schema/arg-spec.js +11 -107
- package/build/lib/schema/arg-spec.js.map +1 -1
- package/build/lib/schema/cli-args.d.ts +3 -15
- package/build/lib/schema/cli-args.d.ts.map +1 -1
- package/build/lib/schema/cli-args.js +15 -105
- package/build/lib/schema/cli-args.js.map +1 -1
- package/build/lib/schema/cli-transformers.d.ts +15 -12
- package/build/lib/schema/cli-transformers.d.ts.map +1 -1
- package/build/lib/schema/cli-transformers.js +15 -45
- package/build/lib/schema/cli-transformers.js.map +1 -1
- package/build/lib/schema/index.d.ts +2 -2
- package/build/lib/schema/index.d.ts.map +1 -1
- package/build/lib/schema/index.js.map +1 -1
- package/build/lib/schema/keywords.d.ts +12 -20
- package/build/lib/schema/keywords.d.ts.map +1 -1
- package/build/lib/schema/keywords.js +6 -51
- package/build/lib/schema/keywords.js.map +1 -1
- package/build/lib/schema/schema.d.ts +106 -231
- package/build/lib/schema/schema.d.ts.map +1 -1
- package/build/lib/schema/schema.js +75 -345
- package/build/lib/schema/schema.js.map +1 -1
- package/build/lib/utils.d.ts +59 -238
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +55 -207
- package/build/lib/utils.js.map +1 -1
- package/lib/cli/{args.js → args.ts} +40 -51
- package/lib/cli/driver-command.ts +122 -0
- package/lib/cli/{extension-command.js → extension-command.ts} +610 -689
- package/lib/cli/extension.ts +65 -0
- package/lib/cli/{parser.js → parser.ts} +48 -71
- package/lib/cli/plugin-command.ts +117 -0
- package/lib/cli/{setup-command.js → setup-command.ts} +57 -72
- package/lib/cli/utils.ts +97 -0
- package/lib/config-file.ts +212 -0
- package/lib/{config.js → config.ts} +129 -141
- package/lib/{constants.js → constants.ts} +30 -41
- package/lib/doctor/{doctor.js → doctor.ts} +81 -91
- package/lib/grid-register.ts +250 -0
- package/lib/{logsink.js → logsink.ts} +91 -137
- package/lib/main.js +1 -1
- package/lib/schema/arg-spec.ts +131 -0
- package/lib/schema/cli-args.ts +171 -0
- package/lib/schema/cli-transformers.ts +83 -0
- package/lib/schema/keywords.ts +96 -0
- package/lib/schema/schema.ts +449 -0
- package/lib/utils.ts +404 -0
- package/package.json +16 -16
- package/lib/cli/driver-command.js +0 -174
- package/lib/cli/extension.js +0 -74
- package/lib/cli/plugin-command.js +0 -164
- package/lib/cli/utils.js +0 -91
- package/lib/config-file.js +0 -228
- package/lib/grid-register.js +0 -146
- package/lib/schema/arg-spec.js +0 -229
- package/lib/schema/cli-args.js +0 -254
- package/lib/schema/cli-transformers.js +0 -113
- package/lib/schema/keywords.js +0 -136
- package/lib/schema/schema.js +0 -725
- package/lib/utils.js +0 -512
- /package/lib/schema/{index.js → index.ts} +0 -0
package/build/lib/cli/args.d.ts
CHANGED
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type ArgumentDefinitions = Map<[
|
|
1
|
+
import _ from 'lodash';
|
|
2
|
+
import type { ArgumentOptions } from 'argparse';
|
|
3
|
+
import type { ExtensionType } from '@appium/types';
|
|
4
|
+
import type { CliExtensionSubcommand } from 'appium/types';
|
|
5
|
+
export type ArgumentDefinitions = Map<[
|
|
6
|
+
name: string
|
|
7
|
+
] | [name: string, alias: string], ArgumentOptions>;
|
|
6
8
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
9
|
+
* Returns CLI argument definitions for extension commands by extension type.
|
|
10
|
+
*
|
|
11
|
+
* The result is memoized because parser setup is static across process lifetime.
|
|
10
12
|
*/
|
|
11
|
-
export
|
|
13
|
+
export declare const getExtensionArgs: (() => Record<ExtensionType, Record<CliExtensionSubcommand, ArgumentDefinitions>>) & _.MemoizedFunction;
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Returns CLI argument definitions for the `server` command.
|
|
16
|
+
*
|
|
17
|
+
* This includes schema-derived options and additional CLI-only options which
|
|
18
|
+
* are intentionally disallowed in config files.
|
|
14
19
|
*/
|
|
15
|
-
export
|
|
16
|
-
import _ from 'lodash';
|
|
20
|
+
export declare function getServerArgs(): ArgumentDefinitions;
|
|
17
21
|
//# sourceMappingURL=args.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../lib/cli/args.
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../lib/cli/args.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAC;AACvB,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,cAAc,CAAC;AAgBzD,MAAM,MAAM,mBAAmB,GAAG,GAAG,CACnC;IAAC,IAAI,EAAE,MAAM;CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,EAC9C,eAAe,CAChB,CAAC;AAwBF;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,SAA0C,MAAM,CAC3E,aAAa,EACb,MAAM,CAAC,sBAAsB,EAAE,mBAAmB,CAAC,CACpD,sBAgBC,CAAC;AAkLH;;;;;GAKG;AACH,wBAAgB,aAAa,IAAI,mBAAmB,CAEnD"}
|
package/build/lib/cli/args.js
CHANGED
|
@@ -16,10 +16,8 @@ const PLUGIN_EXAMPLE = 'images';
|
|
|
16
16
|
* Bad `argparse`! Bad!
|
|
17
17
|
*/
|
|
18
18
|
const INSTALL_TYPES_ARRAY = [...extension_config_1.INSTALL_TYPES];
|
|
19
|
-
/** @type {Set<ExtensionType>} */
|
|
20
19
|
const EXTENSION_TYPES = new Set([constants_1.DRIVER_TYPE, constants_1.PLUGIN_TYPE]);
|
|
21
20
|
// this set of args works for both drivers and plugins ('extensions')
|
|
22
|
-
/** @type {ArgumentDefinitions} */
|
|
23
21
|
const globalExtensionArgs = new Map([
|
|
24
22
|
[
|
|
25
23
|
['--json'],
|
|
@@ -33,9 +31,11 @@ const globalExtensionArgs = new Map([
|
|
|
33
31
|
],
|
|
34
32
|
]);
|
|
35
33
|
/**
|
|
36
|
-
*
|
|
34
|
+
* Returns CLI argument definitions for extension commands by extension type.
|
|
35
|
+
*
|
|
36
|
+
* The result is memoized because parser setup is static across process lifetime.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
exports.getExtensionArgs = lodash_1.default.memoize(function getExtensionArgs() {
|
|
39
39
|
const extensionArgs = {};
|
|
40
40
|
for (const type of EXTENSION_TYPES) {
|
|
41
41
|
extensionArgs[type] = {
|
|
@@ -47,13 +47,10 @@ const getExtensionArgs = lodash_1.default.memoize(function getExtensionArgs() {
|
|
|
47
47
|
[constants_1.EXT_SUBCOMMAND_DOCTOR]: makeDoctorArgs(type),
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return extensionArgs;
|
|
51
51
|
});
|
|
52
|
-
exports.getExtensionArgs = getExtensionArgs;
|
|
53
52
|
/**
|
|
54
|
-
*
|
|
55
|
-
* @param {ExtensionType} type
|
|
56
|
-
* @returns {ArgumentDefinitions}
|
|
53
|
+
* Builds options for the `list` subcommand for an extension type.
|
|
57
54
|
*/
|
|
58
55
|
function makeListArgs(type) {
|
|
59
56
|
return new Map([
|
|
@@ -91,9 +88,7 @@ function makeListArgs(type) {
|
|
|
91
88
|
]);
|
|
92
89
|
}
|
|
93
90
|
/**
|
|
94
|
-
*
|
|
95
|
-
* @param {ExtensionType} type
|
|
96
|
-
* @returns {ArgumentDefinitions}
|
|
91
|
+
* Builds options for the `install` subcommand for an extension type.
|
|
97
92
|
*/
|
|
98
93
|
function makeInstallArgs(type) {
|
|
99
94
|
return new Map([
|
|
@@ -131,9 +126,7 @@ function makeInstallArgs(type) {
|
|
|
131
126
|
]);
|
|
132
127
|
}
|
|
133
128
|
/**
|
|
134
|
-
*
|
|
135
|
-
* @param {ExtensionType} type
|
|
136
|
-
* @returns {ArgumentDefinitions}
|
|
129
|
+
* Builds options for the `uninstall` subcommand for an extension type.
|
|
137
130
|
*/
|
|
138
131
|
function makeUninstallArgs(type) {
|
|
139
132
|
return new Map([
|
|
@@ -149,9 +142,7 @@ function makeUninstallArgs(type) {
|
|
|
149
142
|
]);
|
|
150
143
|
}
|
|
151
144
|
/**
|
|
152
|
-
*
|
|
153
|
-
* @param {ExtensionType} type
|
|
154
|
-
* @returns {ArgumentDefinitions}
|
|
145
|
+
* Builds options for the `doctor` subcommand for an extension type.
|
|
155
146
|
*/
|
|
156
147
|
function makeDoctorArgs(type) {
|
|
157
148
|
return new Map([
|
|
@@ -167,9 +158,7 @@ function makeDoctorArgs(type) {
|
|
|
167
158
|
]);
|
|
168
159
|
}
|
|
169
160
|
/**
|
|
170
|
-
*
|
|
171
|
-
* @param {ExtensionType} type
|
|
172
|
-
* @returns {ArgumentDefinitions}
|
|
161
|
+
* Builds options for the `update` subcommand for an extension type.
|
|
173
162
|
*/
|
|
174
163
|
function makeUpdateArgs(type) {
|
|
175
164
|
return new Map([
|
|
@@ -196,9 +185,7 @@ function makeUpdateArgs(type) {
|
|
|
196
185
|
]);
|
|
197
186
|
}
|
|
198
187
|
/**
|
|
199
|
-
*
|
|
200
|
-
* @param {ExtensionType} type
|
|
201
|
-
* @returns {ArgumentDefinitions}
|
|
188
|
+
* Builds options for the `run` subcommand for an extension type.
|
|
202
189
|
*/
|
|
203
190
|
function makeRunArgs(type) {
|
|
204
191
|
return new Map([
|
|
@@ -224,16 +211,16 @@ function makeRunArgs(type) {
|
|
|
224
211
|
]);
|
|
225
212
|
}
|
|
226
213
|
/**
|
|
227
|
-
*
|
|
228
|
-
*
|
|
229
|
-
*
|
|
214
|
+
* Returns CLI argument definitions for the `server` command.
|
|
215
|
+
*
|
|
216
|
+
* This includes schema-derived options and additional CLI-only options which
|
|
217
|
+
* are intentionally disallowed in config files.
|
|
230
218
|
*/
|
|
231
219
|
function getServerArgs() {
|
|
232
220
|
return new Map([...(0, cli_args_1.toParserArgs)(), ...serverArgsDisallowedInConfig]);
|
|
233
221
|
}
|
|
234
222
|
/**
|
|
235
223
|
* These don't make sense in the context of a config file for obvious reasons.
|
|
236
|
-
* @type {ArgumentDefinitions}
|
|
237
224
|
*/
|
|
238
225
|
const serverArgsDisallowedInConfig = new Map([
|
|
239
226
|
[
|
|
@@ -286,11 +273,4 @@ const serverArgsDisallowedInConfig = new Map([
|
|
|
286
273
|
},
|
|
287
274
|
],
|
|
288
275
|
]);
|
|
289
|
-
/**
|
|
290
|
-
* @typedef {import('@appium/types').ExtensionType} ExtensionType
|
|
291
|
-
*/
|
|
292
|
-
/**
|
|
293
|
-
* A tuple of argument aliases and argument options
|
|
294
|
-
* @typedef {Map<[name: string]|[name: string, alias: string],import('argparse').ArgumentOptions>} ArgumentDefinitions
|
|
295
|
-
*/
|
|
296
276
|
//# sourceMappingURL=args.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../../lib/cli/args.
|
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../../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IAAI;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,8DAA8D;SACrE;KACF;IACD;QACE,CAAC,eAAe,CAAC;QACjB;YACE,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,aAAa;YACrB,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,gDAAgD;SACvD;KACF;IACD;QACE,CAAC,UAAU,CAAC;QACZ;YACE,IAAI,EAAE,YAAY;YAClB,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,KAAK;YACf,IAAI,EAAE,4CAA4C;SACnD;KACF;CACF,CAAC,CAAC"}
|
|
@@ -1,121 +1,79 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type { ExtMetadata, ExtRecord, InstallType } from 'appium/types';
|
|
2
|
+
import ExtensionCliCommand from './extension-command';
|
|
3
|
+
import type { ExtensionArgs, ExtensionCommandOptions, ExtensionUpdateResult, PostInstallText, RunOutput } from './extension-command';
|
|
4
|
+
import '@colors/colors';
|
|
5
|
+
type DriverInstallOpts = {
|
|
6
|
+
driver: string;
|
|
7
|
+
installType: InstallType;
|
|
8
|
+
packageName?: string;
|
|
9
|
+
};
|
|
10
|
+
type DriverUninstallOpts = {
|
|
11
|
+
driver: string;
|
|
12
|
+
};
|
|
13
|
+
type DriverUpdateOpts = {
|
|
14
|
+
driver: string;
|
|
15
|
+
unsafe: boolean;
|
|
16
|
+
};
|
|
17
|
+
type DriverRunOptions = {
|
|
18
|
+
driver: string;
|
|
19
|
+
scriptName: string;
|
|
20
|
+
extraArgs?: string[];
|
|
21
|
+
};
|
|
22
|
+
type DriverDoctorOptions = {
|
|
23
|
+
driver: string;
|
|
24
|
+
};
|
|
25
|
+
export default class DriverCliCommand extends ExtensionCliCommand<'driver'> {
|
|
26
|
+
constructor({ config, json }: ExtensionCommandOptions<'driver'>);
|
|
9
27
|
/**
|
|
10
28
|
* Install a driver
|
|
11
29
|
*
|
|
12
|
-
* @param
|
|
13
|
-
* @return {Promise<ExtRecord<DriverType>>}
|
|
30
|
+
* @param opts - install options
|
|
14
31
|
*/
|
|
15
|
-
install({ driver, installType, packageName }: DriverInstallOpts): Promise<ExtRecord<
|
|
32
|
+
install({ driver, installType, packageName }: DriverInstallOpts): Promise<ExtRecord<'driver'>>;
|
|
16
33
|
/**
|
|
17
34
|
* Uninstall a driver
|
|
18
35
|
*
|
|
19
|
-
* @param
|
|
20
|
-
* @return {Promise<ExtRecord<DriverType>>}
|
|
36
|
+
* @param opts - uninstall options
|
|
21
37
|
*/
|
|
22
|
-
uninstall({ driver }: DriverUninstallOpts): Promise<ExtRecord<
|
|
38
|
+
uninstall({ driver }: DriverUninstallOpts): Promise<ExtRecord<'driver'>>;
|
|
23
39
|
/**
|
|
24
40
|
* Update a driver
|
|
25
41
|
*
|
|
26
|
-
* @param
|
|
27
|
-
* @return {Promise<import('./extension-command').ExtensionUpdateResult>}
|
|
42
|
+
* @param opts - update options
|
|
28
43
|
*/
|
|
29
|
-
update({ driver, unsafe }: DriverUpdateOpts): Promise<
|
|
44
|
+
update({ driver, unsafe }: DriverUpdateOpts): Promise<ExtensionUpdateResult>;
|
|
30
45
|
/**
|
|
31
46
|
* Run a script from a driver
|
|
32
47
|
*
|
|
33
|
-
* @param
|
|
34
|
-
* @return {Promise<import('./extension-command').RunOutput>}
|
|
48
|
+
* @param opts - script execution options
|
|
35
49
|
* @throws {Error} if the script fails to run
|
|
36
50
|
*/
|
|
37
|
-
run({ driver, scriptName, extraArgs }: DriverRunOptions): Promise<
|
|
51
|
+
run({ driver, scriptName, extraArgs }: DriverRunOptions): Promise<RunOutput>;
|
|
38
52
|
/**
|
|
39
53
|
* Runs doctor checks for the given driver.
|
|
40
54
|
*
|
|
41
|
-
* @param
|
|
42
|
-
* @returns
|
|
55
|
+
* @param opts - doctor command options
|
|
56
|
+
* @returns The amount of executed doctor checks.
|
|
43
57
|
* @throws {Error} If any of the mandatory Doctor checks fails.
|
|
44
58
|
*/
|
|
45
59
|
doctor({ driver }: DriverDoctorOptions): Promise<number>;
|
|
46
|
-
}
|
|
47
|
-
export type ExtensionType = import("@appium/types").ExtensionType;
|
|
48
|
-
export type DriverType = import("@appium/types").DriverType;
|
|
49
|
-
export type ExtRecord<ExtType extends ExtensionType> = import("appium/types").ExtRecord<ExtType>;
|
|
50
|
-
export type DriverCommandOptions = {
|
|
51
|
-
config: import("../extension/extension-config").ExtensionConfig<DriverType>;
|
|
52
|
-
json: boolean;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* Options for {@linkcode DriverCliCommand.install}
|
|
56
|
-
*/
|
|
57
|
-
export type DriverInstallOpts = {
|
|
58
60
|
/**
|
|
59
|
-
*
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
* - how to install this driver. One of the INSTALL_TYPES
|
|
64
|
-
*/
|
|
65
|
-
installType: InstallType;
|
|
66
|
-
/**
|
|
67
|
-
* - for git/github installs, the driver node package name
|
|
68
|
-
*/
|
|
69
|
-
packageName?: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
export type InstallType = import("appium/types").InstallType;
|
|
72
|
-
/**
|
|
73
|
-
* Options for {@linkcode DriverCliCommand.uninstall}
|
|
74
|
-
*/
|
|
75
|
-
export type DriverUninstallOpts = {
|
|
76
|
-
/**
|
|
77
|
-
* - the name or spec of a driver to uninstall
|
|
78
|
-
*/
|
|
79
|
-
driver: string;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Options for {@linkcode DriverCliCommand.update}
|
|
83
|
-
*/
|
|
84
|
-
export type DriverUpdateOpts = {
|
|
85
|
-
/**
|
|
86
|
-
* - the name of the driver to update
|
|
87
|
-
*/
|
|
88
|
-
driver: string;
|
|
89
|
-
/**
|
|
90
|
-
* - if true, will perform unsafe updates past major revision boundaries
|
|
91
|
-
*/
|
|
92
|
-
unsafe: boolean;
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Options for {@linkcode DriverCliCommand.run}.
|
|
96
|
-
*/
|
|
97
|
-
export type DriverRunOptions = {
|
|
98
|
-
/**
|
|
99
|
-
* - name of the driver to run a script from
|
|
100
|
-
*/
|
|
101
|
-
driver: string;
|
|
102
|
-
/**
|
|
103
|
-
* - name of the script to run
|
|
104
|
-
*/
|
|
105
|
-
scriptName: string;
|
|
106
|
-
/**
|
|
107
|
-
* - arguments to pass to the script
|
|
61
|
+
* Builds the success message displayed after a driver installation.
|
|
62
|
+
*
|
|
63
|
+
* @param args - installed extension name and metadata
|
|
64
|
+
* @returns formatted success text
|
|
108
65
|
*/
|
|
109
|
-
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Options for {@linkcode DriverCliCommand.doctor}.
|
|
113
|
-
*/
|
|
114
|
-
export type DriverDoctorOptions = {
|
|
66
|
+
getPostInstallText({ extName, extData }: ExtensionArgs<'driver'>): PostInstallText;
|
|
115
67
|
/**
|
|
116
|
-
*
|
|
68
|
+
* Validates fields in `appium` field of `driverMetadata`
|
|
69
|
+
*
|
|
70
|
+
* For any `package.json` fields which a driver requires, validate the type of
|
|
71
|
+
* those fields on the `package.json` data, throwing an error if anything is
|
|
72
|
+
* amiss.
|
|
73
|
+
* @param driverMetadata - `appium` metadata from extension package
|
|
74
|
+
* @param installSpec - install spec from CLI
|
|
117
75
|
*/
|
|
118
|
-
driver: string;
|
|
119
|
-
}
|
|
120
|
-
|
|
76
|
+
validateExtensionFields(driverMetadata: ExtMetadata<'driver'>, installSpec: string): void;
|
|
77
|
+
}
|
|
78
|
+
export {};
|
|
121
79
|
//# sourceMappingURL=driver-command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver-command.d.ts","sourceRoot":"","sources":["../../../lib/cli/driver-command.
|
|
1
|
+
{"version":3,"file":"driver-command.d.ts","sourceRoot":"","sources":["../../../lib/cli/driver-command.ts"],"names":[],"mappings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C,EAAE,gBAAgB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAIhF;;;;;OAKG;IACG,GAAG,CAAC,EAAC,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC;IAShF;;;;;;OAMG;IACG,MAAM,CAAC,EAAC,MAAM,EAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC;IAM5D;;;;;OAKG;IACM,kBAAkB,CAAC,EAAC,OAAO,EAAE,OAAO,EAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,GAAG,eAAe;IAQzF;;;;;;;;OAQG;IACM,uBAAuB,CAAC,cAAc,EAAE,WAAW,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;CAanG"}
|
|
@@ -8,13 +8,7 @@ const extension_command_1 = __importDefault(require("./extension-command"));
|
|
|
8
8
|
const constants_1 = require("../constants");
|
|
9
9
|
require("@colors/colors");
|
|
10
10
|
const REQ_DRIVER_FIELDS = ['driverName', 'automationName', 'platformNames', 'mainClass'];
|
|
11
|
-
/**
|
|
12
|
-
* @extends {ExtensionCliCommand<DriverType>}
|
|
13
|
-
*/
|
|
14
11
|
class DriverCliCommand extends extension_command_1.default {
|
|
15
|
-
/**
|
|
16
|
-
* @param {import('./extension-command').ExtensionCommandOptions<DriverType>} opts
|
|
17
|
-
*/
|
|
18
12
|
constructor({ config, json }) {
|
|
19
13
|
super({ config, json });
|
|
20
14
|
this.knownExtensions = constants_1.KNOWN_DRIVERS;
|
|
@@ -22,8 +16,7 @@ class DriverCliCommand extends extension_command_1.default {
|
|
|
22
16
|
/**
|
|
23
17
|
* Install a driver
|
|
24
18
|
*
|
|
25
|
-
* @param
|
|
26
|
-
* @return {Promise<ExtRecord<DriverType>>}
|
|
19
|
+
* @param opts - install options
|
|
27
20
|
*/
|
|
28
21
|
async install({ driver, installType, packageName }) {
|
|
29
22
|
return await super._install({
|
|
@@ -35,8 +28,7 @@ class DriverCliCommand extends extension_command_1.default {
|
|
|
35
28
|
/**
|
|
36
29
|
* Uninstall a driver
|
|
37
30
|
*
|
|
38
|
-
* @param
|
|
39
|
-
* @return {Promise<ExtRecord<DriverType>>}
|
|
31
|
+
* @param opts - uninstall options
|
|
40
32
|
*/
|
|
41
33
|
async uninstall({ driver }) {
|
|
42
34
|
return await super._uninstall({ installSpec: driver });
|
|
@@ -44,8 +36,7 @@ class DriverCliCommand extends extension_command_1.default {
|
|
|
44
36
|
/**
|
|
45
37
|
* Update a driver
|
|
46
38
|
*
|
|
47
|
-
* @param
|
|
48
|
-
* @return {Promise<import('./extension-command').ExtensionUpdateResult>}
|
|
39
|
+
* @param opts - update options
|
|
49
40
|
*/
|
|
50
41
|
async update({ driver, unsafe }) {
|
|
51
42
|
return await super._update({ installSpec: driver, unsafe });
|
|
@@ -53,8 +44,7 @@ class DriverCliCommand extends extension_command_1.default {
|
|
|
53
44
|
/**
|
|
54
45
|
* Run a script from a driver
|
|
55
46
|
*
|
|
56
|
-
* @param
|
|
57
|
-
* @return {Promise<import('./extension-command').RunOutput>}
|
|
47
|
+
* @param opts - script execution options
|
|
58
48
|
* @throws {Error} if the script fails to run
|
|
59
49
|
*/
|
|
60
50
|
async run({ driver, scriptName, extraArgs }) {
|
|
@@ -68,8 +58,8 @@ class DriverCliCommand extends extension_command_1.default {
|
|
|
68
58
|
/**
|
|
69
59
|
* Runs doctor checks for the given driver.
|
|
70
60
|
*
|
|
71
|
-
* @param
|
|
72
|
-
* @returns
|
|
61
|
+
* @param opts - doctor command options
|
|
62
|
+
* @returns The amount of executed doctor checks.
|
|
73
63
|
* @throws {Error} If any of the mandatory Doctor checks fails.
|
|
74
64
|
*/
|
|
75
65
|
async doctor({ driver }) {
|
|
@@ -78,9 +68,10 @@ class DriverCliCommand extends extension_command_1.default {
|
|
|
78
68
|
});
|
|
79
69
|
}
|
|
80
70
|
/**
|
|
71
|
+
* Builds the success message displayed after a driver installation.
|
|
81
72
|
*
|
|
82
|
-
* @param
|
|
83
|
-
* @returns
|
|
73
|
+
* @param args - installed extension name and metadata
|
|
74
|
+
* @returns formatted success text
|
|
84
75
|
*/
|
|
85
76
|
getPostInstallText({ extName, extData }) {
|
|
86
77
|
return (`Driver ${extName}@${extData.version} successfully installed\n`.green +
|
|
@@ -93,8 +84,8 @@ class DriverCliCommand extends extension_command_1.default {
|
|
|
93
84
|
* For any `package.json` fields which a driver requires, validate the type of
|
|
94
85
|
* those fields on the `package.json` data, throwing an error if anything is
|
|
95
86
|
* amiss.
|
|
96
|
-
* @param
|
|
97
|
-
* @param
|
|
87
|
+
* @param driverMetadata - `appium` metadata from extension package
|
|
88
|
+
* @param installSpec - install spec from CLI
|
|
98
89
|
*/
|
|
99
90
|
validateExtensionFields(driverMetadata, installSpec) {
|
|
100
91
|
const missingFields = REQ_DRIVER_FIELDS.reduce((acc, field) => (driverMetadata[field] ? acc : [...acc, field]), []);
|
|
@@ -105,50 +96,4 @@ class DriverCliCommand extends extension_command_1.default {
|
|
|
105
96
|
}
|
|
106
97
|
}
|
|
107
98
|
exports.default = DriverCliCommand;
|
|
108
|
-
/**
|
|
109
|
-
* @typedef {import('@appium/types').ExtensionType} ExtensionType
|
|
110
|
-
* @typedef {import('@appium/types').DriverType} DriverType
|
|
111
|
-
*/
|
|
112
|
-
/**
|
|
113
|
-
* @template {ExtensionType} ExtType
|
|
114
|
-
* @typedef {import('appium/types').ExtRecord<ExtType>} ExtRecord
|
|
115
|
-
*/
|
|
116
|
-
/**
|
|
117
|
-
* @typedef DriverCommandOptions
|
|
118
|
-
* @property {import('../extension/extension-config').ExtensionConfig<DriverType>} config
|
|
119
|
-
* @property {boolean} json
|
|
120
|
-
*/
|
|
121
|
-
/**
|
|
122
|
-
* Options for {@linkcode DriverCliCommand.install}
|
|
123
|
-
* @typedef DriverInstallOpts
|
|
124
|
-
* @property {string} driver - the name or spec of a driver to install
|
|
125
|
-
* @property {InstallType} installType - how to install this driver. One of the INSTALL_TYPES
|
|
126
|
-
* @property {string} [packageName] - for git/github installs, the driver node package name
|
|
127
|
-
*/
|
|
128
|
-
/**
|
|
129
|
-
* @typedef {import('appium/types').InstallType} InstallType
|
|
130
|
-
*/
|
|
131
|
-
/**
|
|
132
|
-
* Options for {@linkcode DriverCliCommand.uninstall}
|
|
133
|
-
* @typedef DriverUninstallOpts
|
|
134
|
-
* @property {string} driver - the name or spec of a driver to uninstall
|
|
135
|
-
*/
|
|
136
|
-
/**
|
|
137
|
-
* Options for {@linkcode DriverCliCommand.update}
|
|
138
|
-
* @typedef DriverUpdateOpts
|
|
139
|
-
* @property {string} driver - the name of the driver to update
|
|
140
|
-
* @property {boolean} unsafe - if true, will perform unsafe updates past major revision boundaries
|
|
141
|
-
*/
|
|
142
|
-
/**
|
|
143
|
-
* Options for {@linkcode DriverCliCommand.run}.
|
|
144
|
-
* @typedef DriverRunOptions
|
|
145
|
-
* @property {string} driver - name of the driver to run a script from
|
|
146
|
-
* @property {string} scriptName - name of the script to run
|
|
147
|
-
* @property {string[]} [extraArgs] - arguments to pass to the script
|
|
148
|
-
*/
|
|
149
|
-
/**
|
|
150
|
-
* Options for {@linkcode DriverCliCommand.doctor}.
|
|
151
|
-
* @typedef DriverDoctorOptions
|
|
152
|
-
* @property {string} driver - name of the driver to run doctor checks for
|
|
153
|
-
*/
|
|
154
99
|
//# sourceMappingURL=driver-command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver-command.js","sourceRoot":"","sources":["../../../lib/cli/driver-command.
|
|
1
|
+
{"version":3,"file":"driver-command.js","sourceRoot":"","sources":["../../../lib/cli/driver-command.ts"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAEvB,4EAAsD;AAQtD,4CAA2C;AAC3C,0BAAwB;AAExB,MAAM,iBAAiB,GAAG,CAAC,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,WAAW,CAAC,CAAC;AAOzF,MAAqB,gBAAiB,SAAQ,2BAA6B;IACzE,YAAY,EA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