const commands = {}; /** * Add the particular media file to Simulator's library. * It is required that Simulator is in _booted_ state. * * @param {string} filePath - Full path to a media file on the local * file system. * @return {ExecResult} Command execution result. * @throws {Error} If the corresponding simctl subcommand command * returns non-zero return code. * @throws {Error} If the `udid` instance property is unset */ commands.addMedia = async function addMedia (filePath) { return await this.exec('addmedia', { args: [this.requireUdid('addmedia'), filePath], }); }; export default commands;