node-simctl 7.3.5 → 7.3.7
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/CHANGELOG.md +14 -0
- package/build/lib/simctl.d.ts +56 -4
- package/build/lib/simctl.d.ts.map +1 -1
- package/build/lib/simctl.js +77 -9
- package/build/lib/simctl.js.map +1 -1
- package/build/lib/subcommands/addmedia.d.ts +2 -1
- package/build/lib/subcommands/addmedia.d.ts.map +1 -1
- package/build/lib/subcommands/addmedia.js +1 -0
- package/build/lib/subcommands/addmedia.js.map +1 -1
- package/build/lib/subcommands/appinfo.d.ts +2 -1
- package/build/lib/subcommands/appinfo.d.ts.map +1 -1
- package/build/lib/subcommands/appinfo.js +1 -0
- package/build/lib/subcommands/appinfo.js.map +1 -1
- package/build/lib/subcommands/boot.d.ts +2 -1
- package/build/lib/subcommands/boot.d.ts.map +1 -1
- package/build/lib/subcommands/boot.js +1 -0
- package/build/lib/subcommands/boot.js.map +1 -1
- package/build/lib/subcommands/bootstatus.d.ts +2 -1
- package/build/lib/subcommands/bootstatus.d.ts.map +1 -1
- package/build/lib/subcommands/bootstatus.js +1 -0
- package/build/lib/subcommands/bootstatus.js.map +1 -1
- package/build/lib/subcommands/create.d.ts +2 -1
- package/build/lib/subcommands/create.d.ts.map +1 -1
- package/build/lib/subcommands/create.js +1 -0
- package/build/lib/subcommands/create.js.map +1 -1
- package/build/lib/subcommands/delete.d.ts +2 -1
- package/build/lib/subcommands/delete.d.ts.map +1 -1
- package/build/lib/subcommands/delete.js +1 -0
- package/build/lib/subcommands/delete.js.map +1 -1
- package/build/lib/subcommands/erase.d.ts +2 -1
- package/build/lib/subcommands/erase.d.ts.map +1 -1
- package/build/lib/subcommands/erase.js +1 -0
- package/build/lib/subcommands/erase.js.map +1 -1
- package/build/lib/subcommands/get_app_container.d.ts +2 -1
- package/build/lib/subcommands/get_app_container.d.ts.map +1 -1
- package/build/lib/subcommands/get_app_container.js +1 -0
- package/build/lib/subcommands/get_app_container.js.map +1 -1
- package/build/lib/subcommands/getenv.d.ts +2 -1
- package/build/lib/subcommands/getenv.d.ts.map +1 -1
- package/build/lib/subcommands/getenv.js +1 -0
- package/build/lib/subcommands/getenv.js.map +1 -1
- package/build/lib/subcommands/install.d.ts +2 -1
- package/build/lib/subcommands/install.d.ts.map +1 -1
- package/build/lib/subcommands/install.js +1 -0
- package/build/lib/subcommands/install.js.map +1 -1
- package/build/lib/subcommands/io.d.ts +2 -1
- package/build/lib/subcommands/io.d.ts.map +1 -1
- package/build/lib/subcommands/io.js +1 -0
- package/build/lib/subcommands/io.js.map +1 -1
- package/build/lib/subcommands/keychain.d.ts +6 -3
- package/build/lib/subcommands/keychain.d.ts.map +1 -1
- package/build/lib/subcommands/keychain.js +9 -1
- package/build/lib/subcommands/keychain.js.map +1 -1
- package/build/lib/subcommands/launch.d.ts +2 -1
- package/build/lib/subcommands/launch.d.ts.map +1 -1
- package/build/lib/subcommands/launch.js +1 -0
- package/build/lib/subcommands/launch.js.map +1 -1
- package/build/lib/subcommands/list.d.ts +12 -6
- package/build/lib/subcommands/list.d.ts.map +1 -1
- package/build/lib/subcommands/list.js +6 -1
- package/build/lib/subcommands/list.js.map +1 -1
- package/build/lib/subcommands/location.d.ts +6 -3
- package/build/lib/subcommands/location.d.ts.map +1 -1
- package/build/lib/subcommands/location.js +4 -1
- package/build/lib/subcommands/location.js.map +1 -1
- package/build/lib/subcommands/openurl.d.ts +2 -1
- package/build/lib/subcommands/openurl.d.ts.map +1 -1
- package/build/lib/subcommands/openurl.js +1 -0
- package/build/lib/subcommands/openurl.js.map +1 -1
- package/build/lib/subcommands/pbcopy.d.ts +4 -3
- package/build/lib/subcommands/pbcopy.d.ts.map +1 -1
- package/build/lib/subcommands/pbcopy.js +9 -6
- package/build/lib/subcommands/pbcopy.js.map +1 -1
- package/build/lib/subcommands/pbpaste.d.ts +2 -1
- package/build/lib/subcommands/pbpaste.d.ts.map +1 -1
- package/build/lib/subcommands/pbpaste.js +1 -0
- package/build/lib/subcommands/pbpaste.js.map +1 -1
- package/build/lib/subcommands/privacy.d.ts +6 -3
- package/build/lib/subcommands/privacy.d.ts.map +1 -1
- package/build/lib/subcommands/privacy.js +3 -0
- package/build/lib/subcommands/privacy.js.map +1 -1
- package/build/lib/subcommands/push.d.ts +2 -1
- package/build/lib/subcommands/push.d.ts.map +1 -1
- package/build/lib/subcommands/push.js +1 -0
- package/build/lib/subcommands/push.js.map +1 -1
- package/build/lib/subcommands/shutdown.d.ts +2 -1
- package/build/lib/subcommands/shutdown.d.ts.map +1 -1
- package/build/lib/subcommands/shutdown.js +1 -0
- package/build/lib/subcommands/shutdown.js.map +1 -1
- package/build/lib/subcommands/spawn.d.ts +4 -2
- package/build/lib/subcommands/spawn.d.ts.map +1 -1
- package/build/lib/subcommands/spawn.js +2 -0
- package/build/lib/subcommands/spawn.js.map +1 -1
- package/build/lib/subcommands/terminate.d.ts +2 -1
- package/build/lib/subcommands/terminate.d.ts.map +1 -1
- package/build/lib/subcommands/terminate.js +1 -0
- package/build/lib/subcommands/terminate.js.map +1 -1
- package/build/lib/subcommands/ui.d.ts +4 -2
- package/build/lib/subcommands/ui.d.ts.map +1 -1
- package/build/lib/subcommands/ui.js +2 -0
- package/build/lib/subcommands/ui.js.map +1 -1
- package/build/lib/subcommands/uninstall.d.ts +2 -1
- package/build/lib/subcommands/uninstall.d.ts.map +1 -1
- package/build/lib/subcommands/uninstall.js +1 -0
- package/build/lib/subcommands/uninstall.js.map +1 -1
- package/lib/simctl.js +101 -10
- package/lib/subcommands/addmedia.js +1 -0
- package/lib/subcommands/appinfo.js +1 -0
- package/lib/subcommands/boot.js +1 -0
- package/lib/subcommands/bootstatus.js +1 -0
- package/lib/subcommands/create.js +1 -0
- package/lib/subcommands/delete.js +1 -0
- package/lib/subcommands/erase.js +1 -0
- package/lib/subcommands/get_app_container.js +1 -0
- package/lib/subcommands/getenv.js +1 -0
- package/lib/subcommands/install.js +1 -0
- package/lib/subcommands/io.js +1 -0
- package/lib/subcommands/keychain.js +9 -1
- package/lib/subcommands/launch.js +1 -0
- package/lib/subcommands/list.js +6 -1
- package/lib/subcommands/location.js +4 -1
- package/lib/subcommands/openurl.js +1 -0
- package/lib/subcommands/pbcopy.js +9 -6
- package/lib/subcommands/pbpaste.js +1 -0
- package/lib/subcommands/privacy.js +3 -0
- package/lib/subcommands/push.js +1 -0
- package/lib/subcommands/shutdown.js +1 -0
- package/lib/subcommands/spawn.js +2 -0
- package/lib/subcommands/terminate.js +1 -0
- package/lib/subcommands/ui.js +2 -0
- package/lib/subcommands/uninstall.js +1 -0
- package/package.json +1 -1
- package/build/lib/subcommands/index.d.ts +0 -3
- package/build/lib/subcommands/index.d.ts.map +0 -1
- package/build/lib/subcommands/index.js +0 -34
- package/build/lib/subcommands/index.js.map +0 -1
- package/lib/subcommands/index.js +0 -56
|
@@ -7,6 +7,11 @@ import { rimraf } from 'rimraf';
|
|
|
7
7
|
|
|
8
8
|
const commands = {};
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
*
|
|
12
|
+
* @param {string|Buffer} payload
|
|
13
|
+
* @param {(filePath: string) => Promise<any>} onPayloadStored
|
|
14
|
+
*/
|
|
10
15
|
async function handleRawPayload (payload, onPayloadStored) {
|
|
11
16
|
const filePath = path.resolve(os.tmpdir(), `${uuidV4()}.pem`);
|
|
12
17
|
try {
|
|
@@ -33,6 +38,7 @@ async function handleRawPayload (payload, onPayloadStored) {
|
|
|
33
38
|
* Adds the given certificate to the Trusted Root Store on the simulator
|
|
34
39
|
*
|
|
35
40
|
* @since Xcode 11.4 SDK
|
|
41
|
+
* @this {import('../simctl').Simctl}
|
|
36
42
|
* @param {string} cert the full path to a valid .cert file containing
|
|
37
43
|
* the certificate content or the certificate content itself, depending on
|
|
38
44
|
* options
|
|
@@ -45,7 +51,7 @@ commands.addRootCertificate = async function addRootCertificate (cert, opts = {}
|
|
|
45
51
|
const {
|
|
46
52
|
raw = false,
|
|
47
53
|
} = opts;
|
|
48
|
-
const execMethod = async (certPath) => await this.exec('keychain', {
|
|
54
|
+
const execMethod = async (/** @type {string} */certPath) => await this.exec('keychain', {
|
|
49
55
|
args: [this.requireUdid('keychain add-root-cert'), 'add-root-cert', certPath],
|
|
50
56
|
});
|
|
51
57
|
if (raw) {
|
|
@@ -59,6 +65,7 @@ commands.addRootCertificate = async function addRootCertificate (cert, opts = {}
|
|
|
59
65
|
* Adds the given certificate to the Keychain Store on the simulator
|
|
60
66
|
*
|
|
61
67
|
* @since Xcode 11.4 SDK
|
|
68
|
+
* @this {import('../simctl').Simctl}
|
|
62
69
|
* @param {string} cert the full path to a valid .cert file containing
|
|
63
70
|
* the certificate content or the certificate content itself, depending on
|
|
64
71
|
* options
|
|
@@ -85,6 +92,7 @@ commands.addCertificate = async function addCertificate (cert, opts = {}) {
|
|
|
85
92
|
* Resets the simulator keychain
|
|
86
93
|
*
|
|
87
94
|
* @since Xcode 11.4 SDK
|
|
95
|
+
* @this {import('../simctl').Simctl}
|
|
88
96
|
* @throws {Error} if the current SDK version does not support the command
|
|
89
97
|
* or there was an error while resetting the keychain
|
|
90
98
|
* @throws {Error} If the `udid` instance property is unset
|
|
@@ -8,6 +8,7 @@ const commands = {};
|
|
|
8
8
|
* It is required that Simulator is in _booted_ state and
|
|
9
9
|
* the application with given bundle identifier is already installed.
|
|
10
10
|
*
|
|
11
|
+
* @this {import('../simctl').Simctl}
|
|
11
12
|
* @param {string} bundleId - Bundle identifier of the application,
|
|
12
13
|
* which is going to be removed.
|
|
13
14
|
* @param {number} [tries=5] - The maximum number of retries before
|
package/lib/subcommands/list.js
CHANGED
|
@@ -17,6 +17,7 @@ const commands = {};
|
|
|
17
17
|
* Parse the list of existing Simulator devices to represent
|
|
18
18
|
* it as convenient mapping.
|
|
19
19
|
*
|
|
20
|
+
* @this {import('../simctl').Simctl}
|
|
20
21
|
* @param {string?} [platform] - The platform name, for example 'watchOS'.
|
|
21
22
|
* @return {Promise<Record<string, any>>} The resulting mapping. Each key is platform version,
|
|
22
23
|
* for example '10.3' and the corresponding value is an
|
|
@@ -25,7 +26,6 @@ const commands = {};
|
|
|
25
26
|
* returns non-zero return code.
|
|
26
27
|
*/
|
|
27
28
|
commands.getDevicesByParsing = async function getDevicesByParsing (platform) {
|
|
28
|
-
// get the list of devices
|
|
29
29
|
const {stdout} = await this.exec('list', {
|
|
30
30
|
args: ['devices'],
|
|
31
31
|
});
|
|
@@ -90,6 +90,7 @@ commands.getDevicesByParsing = async function getDevicesByParsing (platform) {
|
|
|
90
90
|
* Parse the list of existing Simulator devices to represent
|
|
91
91
|
* it as convenient mapping for the particular platform version.
|
|
92
92
|
*
|
|
93
|
+
* @this {import('../simctl').Simctl}
|
|
93
94
|
* @param {string?} [forSdk] - The sdk version,
|
|
94
95
|
* for which the devices list should be parsed,
|
|
95
96
|
* for example '10.3'.
|
|
@@ -174,6 +175,7 @@ commands.getDevices = async function getDevices (forSdk, platform) {
|
|
|
174
175
|
/**
|
|
175
176
|
* Get the runtime for the particular platform version using --json flag
|
|
176
177
|
*
|
|
178
|
+
* @this {import('../simctl').Simctl}
|
|
177
179
|
* @param {string} platformVersion - The platform version name,
|
|
178
180
|
* for example '10.3'.
|
|
179
181
|
* @param {string} [platform='iOS'] - The platform name, for example 'watchOS'.
|
|
@@ -197,6 +199,7 @@ commands.getRuntimeForPlatformVersionViaJson = async function getRuntimeForPlatf
|
|
|
197
199
|
/**
|
|
198
200
|
* Get the runtime for the particular platform version.
|
|
199
201
|
*
|
|
202
|
+
* @this {import('../simctl').Simctl}
|
|
200
203
|
* @param {string} platformVersion - The platform version name,
|
|
201
204
|
* for example '10.3'.
|
|
202
205
|
* @param {string} [platform='iOS'] - The platform name, for example 'watchOS'.
|
|
@@ -228,6 +231,7 @@ commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVers
|
|
|
228
231
|
/**
|
|
229
232
|
* Get the list of device types available in the current Xcode installation
|
|
230
233
|
*
|
|
234
|
+
* @this {import('../simctl').Simctl}
|
|
231
235
|
* @return {Promise<string[]>} List of the types of devices available
|
|
232
236
|
* @throws {Error} If the corresponding simctl command fails
|
|
233
237
|
*/
|
|
@@ -257,6 +261,7 @@ commands.getDeviceTypes = async function getDeviceTypes () {
|
|
|
257
261
|
/**
|
|
258
262
|
* Get the full list of runtimes, devicetypes, devices and pairs as Object
|
|
259
263
|
*
|
|
264
|
+
* @this {import('../simctl').Simctl}
|
|
260
265
|
* @return {Promise<Object>} Object containing device types, runtimes devices and pairs.
|
|
261
266
|
* The resulting JSON will be like:
|
|
262
267
|
* {
|
|
@@ -19,6 +19,7 @@ function formatArg (name, value) {
|
|
|
19
19
|
* Set the Simulator location to a specific latitude and longitude.
|
|
20
20
|
* This functionality is only available since Xcode 14.
|
|
21
21
|
*
|
|
22
|
+
* @this {import('../simctl').Simctl}
|
|
22
23
|
* @param {string|number} latitude Location latitude value
|
|
23
24
|
* @param {string|number} longitude Location longitude value
|
|
24
25
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
@@ -35,7 +36,9 @@ commands.setLocation = async function setLocation (latitude, longitude) {
|
|
|
35
36
|
|
|
36
37
|
/**
|
|
37
38
|
* Stop any running scenario and clear any simulated location.
|
|
38
|
-
*
|
|
39
|
+
*
|
|
40
|
+
* @since Xcode 14.
|
|
41
|
+
* @this {import('../simctl').Simctl}
|
|
39
42
|
*/
|
|
40
43
|
commands.clearLocation = async function clearLocation () {
|
|
41
44
|
await this.exec('location', {
|
|
@@ -5,6 +5,7 @@ const commands = {};
|
|
|
5
5
|
* to find a matching application, which supports the given scheme.
|
|
6
6
|
* It is required that Simulator is in _booted_ state.
|
|
7
7
|
*
|
|
8
|
+
* @this {import('../simctl').Simctl}
|
|
8
9
|
* @param {string} url - The URL scheme to open, for example http://appiom.io
|
|
9
10
|
* will be opened by the built-in mobile browser.
|
|
10
11
|
* @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
|
|
@@ -5,9 +5,10 @@ const commands = {};
|
|
|
5
5
|
* It is required that Simulator is in _booted_ state.
|
|
6
6
|
*
|
|
7
7
|
* @since Xcode SDK 8.1
|
|
8
|
+
* @this {import('../simctl').Simctl}
|
|
8
9
|
* @param {string} content - The actual string content to be set.
|
|
9
|
-
* @param {
|
|
10
|
-
*
|
|
10
|
+
* @param {BufferEncoding} [encoding='utf8'] - The encoding of the given pasteboard content.
|
|
11
|
+
* utf8 by default.
|
|
11
12
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
12
13
|
* returns non-zero return code.
|
|
13
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
@@ -19,10 +20,12 @@ commands.setPasteboard = async function setPasteboard (content, encoding = 'utf8
|
|
|
19
20
|
});
|
|
20
21
|
await pbCopySubprocess.start(0);
|
|
21
22
|
const exitCodeVerifier = pbCopySubprocess.join();
|
|
22
|
-
const stdin = pbCopySubprocess.proc
|
|
23
|
-
stdin
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
const stdin = pbCopySubprocess.proc?.stdin;
|
|
24
|
+
if (stdin) {
|
|
25
|
+
stdin.setDefaultEncoding(encoding);
|
|
26
|
+
stdin.write(content);
|
|
27
|
+
stdin.end();
|
|
28
|
+
}
|
|
26
29
|
await exitCodeVerifier;
|
|
27
30
|
};
|
|
28
31
|
|
|
@@ -5,6 +5,7 @@ const commands = {};
|
|
|
5
5
|
* It is required that Simulator is in _booted_ state.
|
|
6
6
|
*
|
|
7
7
|
* @since Xcode 8.1 SDK
|
|
8
|
+
* @this {import('../simctl').Simctl}
|
|
8
9
|
* @param {string} [encoding='utf8'] - The encoding of the returned pasteboard content.
|
|
9
10
|
* UTF-8 by default.
|
|
10
11
|
* @return {Promise<string>} Current content of Simulator pasteboard or an empty string.
|
|
@@ -4,6 +4,7 @@ const commands = {};
|
|
|
4
4
|
* Grants the given permission on the app with the given bundle identifier
|
|
5
5
|
*
|
|
6
6
|
* @since Xcode 11.4 SDK
|
|
7
|
+
* @this {import('../simctl').Simctl}
|
|
7
8
|
* @param {string} bundleId the identifier of the application whose
|
|
8
9
|
* privacy settings are going to be changed
|
|
9
10
|
* @param {string} perm one of possible permission values:
|
|
@@ -35,6 +36,7 @@ commands.grantPermission = async function grantPermission (bundleId, perm) {
|
|
|
35
36
|
* after it has been granted
|
|
36
37
|
*
|
|
37
38
|
* @since Xcode 11.4 SDK
|
|
39
|
+
* @this {import('../simctl').Simctl}
|
|
38
40
|
* @param {string} bundleId the identifier of the application whose
|
|
39
41
|
* privacy settings are going to be changed
|
|
40
42
|
* @param {string} perm one of possible permission values (see `grantPermission`)
|
|
@@ -53,6 +55,7 @@ commands.revokePermission = async function revokePermission (bundleId, perm) {
|
|
|
53
55
|
* to its default state
|
|
54
56
|
*
|
|
55
57
|
* @since Xcode 11.4 SDK
|
|
58
|
+
* @this {import('../simctl').Simctl}
|
|
56
59
|
* @param {string} bundleId the identifier of the application whose
|
|
57
60
|
* privacy settings are going to be changed
|
|
58
61
|
* @param {string} perm one of possible permission values (see `grantPermission`)
|
package/lib/subcommands/push.js
CHANGED
|
@@ -10,6 +10,7 @@ const commands = {};
|
|
|
10
10
|
* Send a simulated push notification
|
|
11
11
|
*
|
|
12
12
|
* @since Xcode 11.4 SDK
|
|
13
|
+
* @this {import('../simctl').Simctl}
|
|
13
14
|
* @param {Object} payload - The object that describes Apple push notification content.
|
|
14
15
|
* It must contain a top-level "Simulator Target Bundle" key with a string value matching
|
|
15
16
|
* the target application‘s bundle identifier and "aps" key with valid Apple Push Notification values.
|
|
@@ -6,6 +6,7 @@ const commands = {};
|
|
|
6
6
|
/**
|
|
7
7
|
* Shutdown the given Simulator if it is running.
|
|
8
8
|
*
|
|
9
|
+
* @this {import('../simctl').Simctl}
|
|
9
10
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
10
11
|
* returns non-zero return code.
|
|
11
12
|
* @throws {Error} If the `udid` instance property is unset
|
package/lib/subcommands/spawn.js
CHANGED
|
@@ -7,6 +7,7 @@ const commands = {};
|
|
|
7
7
|
* Spawn the particular process on Simulator.
|
|
8
8
|
* It is required that Simulator is in _booted_ state.
|
|
9
9
|
*
|
|
10
|
+
* @this {import('../simctl').Simctl}
|
|
10
11
|
* @param {string|string[]} args - Spawn arguments
|
|
11
12
|
* @param {object} [env={}] - Additional environment variables mapping.
|
|
12
13
|
* @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
|
|
@@ -29,6 +30,7 @@ commands.spawnProcess = async function spawnProcess (args, env = {}) {
|
|
|
29
30
|
* Prepare SubProcess instance for a new process, which is going to be spawned
|
|
30
31
|
* on Simulator.
|
|
31
32
|
*
|
|
33
|
+
* @this {import('../simctl').Simctl}
|
|
32
34
|
* @param {string|string[]} args - Spawn arguments
|
|
33
35
|
* @param {object} [env={}] - Additional environment variables mapping.
|
|
34
36
|
* @return {Promise<import('teen_process').SubProcess>} The instance of the process to be spawned.
|
|
@@ -4,6 +4,7 @@ const commands = {};
|
|
|
4
4
|
* Terminate the given running application on Simulator.
|
|
5
5
|
* It is required that Simulator is in _booted_ state.
|
|
6
6
|
*
|
|
7
|
+
* @this {import('../simctl').Simctl}
|
|
7
8
|
* @param {string} bundleId - Bundle identifier of the application,
|
|
8
9
|
* which is going to be terminated.
|
|
9
10
|
* @throws {Error} If the corresponding simctl subcommand command
|
package/lib/subcommands/ui.js
CHANGED
|
@@ -7,6 +7,7 @@ const commands = {};
|
|
|
7
7
|
* Retrieves the current UI appearance value from the given simulator
|
|
8
8
|
*
|
|
9
9
|
* @since Xcode 11.4 SDK
|
|
10
|
+
* @this {import('../simctl').Simctl}
|
|
10
11
|
* @return {Promise<string>} the appearance value, for example 'light' or 'dark'
|
|
11
12
|
* @throws {Error} if the current SDK version does not support the command
|
|
12
13
|
* or there was an error while getting the value
|
|
@@ -23,6 +24,7 @@ commands.getAppearance = async function getAppearance () {
|
|
|
23
24
|
* Sets the UI appearance to the given style
|
|
24
25
|
*
|
|
25
26
|
* @since Xcode 11.4 SDK
|
|
27
|
+
* @this {import('../simctl').Simctl}
|
|
26
28
|
* @param {string} appearance valid appearance value, for example 'light' or 'dark'
|
|
27
29
|
* @throws {Error} if the current SDK version does not support the command
|
|
28
30
|
* or there was an error while getting the value
|
|
@@ -5,6 +5,7 @@ const commands = {};
|
|
|
5
5
|
* It is required that Simulator is in _booted_ state and
|
|
6
6
|
* the application with given bundle identifier is already installed.
|
|
7
7
|
*
|
|
8
|
+
* @this {import('../simctl').Simctl}
|
|
8
9
|
* @param {string} bundleId - Bundle identifier of the application,
|
|
9
10
|
* which is going to be removed.
|
|
10
11
|
* @throws {Error} If the corresponding simctl subcommand command
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/index.js"],"names":[],"mappings":";AA2BA,+BA0BE"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const addmedia_1 = __importDefault(require("./addmedia"));
|
|
7
|
-
const appinfo_1 = __importDefault(require("./appinfo"));
|
|
8
|
-
const boot_1 = __importDefault(require("./boot"));
|
|
9
|
-
const bootstatus_1 = __importDefault(require("./bootstatus"));
|
|
10
|
-
const create_1 = __importDefault(require("./create"));
|
|
11
|
-
const delete_1 = __importDefault(require("./delete"));
|
|
12
|
-
const erase_1 = __importDefault(require("./erase"));
|
|
13
|
-
const get_app_container_1 = __importDefault(require("./get_app_container"));
|
|
14
|
-
const install_1 = __importDefault(require("./install"));
|
|
15
|
-
const io_1 = __importDefault(require("./io"));
|
|
16
|
-
const keychain_1 = __importDefault(require("./keychain"));
|
|
17
|
-
const launch_1 = __importDefault(require("./launch"));
|
|
18
|
-
const list_1 = __importDefault(require("./list"));
|
|
19
|
-
const openurl_1 = __importDefault(require("./openurl"));
|
|
20
|
-
const pbcopy_1 = __importDefault(require("./pbcopy"));
|
|
21
|
-
const pbpaste_1 = __importDefault(require("./pbpaste"));
|
|
22
|
-
const privacy_1 = __importDefault(require("./privacy"));
|
|
23
|
-
const push_1 = __importDefault(require("./push"));
|
|
24
|
-
const getenv_1 = __importDefault(require("./getenv"));
|
|
25
|
-
const shutdown_1 = __importDefault(require("./shutdown"));
|
|
26
|
-
const spawn_1 = __importDefault(require("./spawn"));
|
|
27
|
-
const terminate_1 = __importDefault(require("./terminate"));
|
|
28
|
-
const ui_1 = __importDefault(require("./ui"));
|
|
29
|
-
const uninstall_1 = __importDefault(require("./uninstall"));
|
|
30
|
-
const location_1 = __importDefault(require("./location"));
|
|
31
|
-
// xcrun simctl --help
|
|
32
|
-
const subcommands = Object.assign({}, addmedia_1.default, appinfo_1.default, boot_1.default, bootstatus_1.default, create_1.default, delete_1.default, erase_1.default, get_app_container_1.default, install_1.default, io_1.default, keychain_1.default, launch_1.default, list_1.default, openurl_1.default, pbcopy_1.default, pbpaste_1.default, privacy_1.default, push_1.default, getenv_1.default, shutdown_1.default, spawn_1.default, terminate_1.default, ui_1.default, uninstall_1.default, location_1.default);
|
|
33
|
-
exports.default = subcommands;
|
|
34
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/subcommands/index.js"],"names":[],"mappings":";;;;;AAAA,0DAA0C;AAC1C,wDAAwC;AACxC,kDAAkC;AAClC,8DAA8C;AAC9C,sDAAsC;AACtC,sDAAsC;AACtC,oDAAoC;AACpC,4EAA0D;AAC1D,wDAAwC;AACxC,8CAA8B;AAC9B,0DAA0C;AAC1C,sDAAsC;AACtC,kDAAkC;AAClC,wDAAwC;AACxC,sDAAsC;AACtC,wDAAwC;AACxC,wDAAwC;AACxC,kDAAkC;AAClC,sDAAmC;AACnC,0DAA0C;AAC1C,oDAAoC;AACpC,4DAA4C;AAC5C,8CAA8B;AAC9B,4DAA4C;AAC5C,0DAA0C;AAE1C,sBAAsB;AACtB,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAChC,kBAAgB,EAChB,iBAAe,EACf,cAAY,EACZ,oBAAkB,EAClB,gBAAc,EACd,gBAAc,EACd,eAAa,EACb,2BAAuB,EACvB,iBAAe,EACf,YAAU,EACV,kBAAgB,EAChB,gBAAc,EACd,cAAY,EACZ,iBAAe,EACf,gBAAc,EACd,iBAAe,EACf,iBAAe,EACf,cAAY,EACZ,gBAAW,EACX,kBAAgB,EAChB,eAAa,EACb,mBAAiB,EACjB,YAAU,EACV,mBAAiB,EACjB,kBAAgB,CACnB,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
package/lib/subcommands/index.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import addmediaCommands from './addmedia';
|
|
2
|
-
import appinfoCommands from './appinfo';
|
|
3
|
-
import bootCommands from './boot';
|
|
4
|
-
import bootstatusCommands from './bootstatus';
|
|
5
|
-
import createCommands from './create';
|
|
6
|
-
import deleteCommands from './delete';
|
|
7
|
-
import eraseCommands from './erase';
|
|
8
|
-
import getappcontainerCommands from './get_app_container';
|
|
9
|
-
import installCommands from './install';
|
|
10
|
-
import ioCommands from './io';
|
|
11
|
-
import keychainCommands from './keychain';
|
|
12
|
-
import launchCommands from './launch';
|
|
13
|
-
import listCommands from './list';
|
|
14
|
-
import openurlCommands from './openurl';
|
|
15
|
-
import pbcopyCommands from './pbcopy';
|
|
16
|
-
import pbpasteCommands from './pbpaste';
|
|
17
|
-
import privacyCommands from './privacy';
|
|
18
|
-
import pushCommands from './push';
|
|
19
|
-
import envCommands from './getenv';
|
|
20
|
-
import shutdownCommands from './shutdown';
|
|
21
|
-
import spawnCommands from './spawn';
|
|
22
|
-
import terminateCommands from './terminate';
|
|
23
|
-
import uiCommands from './ui';
|
|
24
|
-
import uninstallCommands from './uninstall';
|
|
25
|
-
import locationCommands from './location';
|
|
26
|
-
|
|
27
|
-
// xcrun simctl --help
|
|
28
|
-
const subcommands = Object.assign({},
|
|
29
|
-
addmediaCommands,
|
|
30
|
-
appinfoCommands,
|
|
31
|
-
bootCommands,
|
|
32
|
-
bootstatusCommands,
|
|
33
|
-
createCommands,
|
|
34
|
-
deleteCommands,
|
|
35
|
-
eraseCommands,
|
|
36
|
-
getappcontainerCommands,
|
|
37
|
-
installCommands,
|
|
38
|
-
ioCommands,
|
|
39
|
-
keychainCommands,
|
|
40
|
-
launchCommands,
|
|
41
|
-
listCommands,
|
|
42
|
-
openurlCommands,
|
|
43
|
-
pbcopyCommands,
|
|
44
|
-
pbpasteCommands,
|
|
45
|
-
privacyCommands,
|
|
46
|
-
pushCommands,
|
|
47
|
-
envCommands,
|
|
48
|
-
shutdownCommands,
|
|
49
|
-
spawnCommands,
|
|
50
|
-
terminateCommands,
|
|
51
|
-
uiCommands,
|
|
52
|
-
uninstallCommands,
|
|
53
|
-
locationCommands,
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
export default subcommands;
|