node-simctl
Version:
Wrapper around Apple's simctl binary
18 lines (15 loc) • 471 B
JavaScript
const commands = {};
/**
* Delete the particular Simulator from available devices list.
*
* @this {import('../simctl').Simctl}
* @throws {Error} If the corresponding simctl subcommand command
* returns non-zero return code.
* @throws {Error} If the `udid` instance property is unset
*/
commands.deleteDevice = async function deleteDevice () {
await this.exec('delete', {
args: [this.requireUdid('delete')]
});
};
export default commands;