17 lines
433 B
JavaScript
17 lines
433 B
JavaScript
const commands = {};
|
|
|
|
/**
|
|
* Delete the particular Simulator from available devices list.
|
|
*
|
|
* @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;
|