first commit

This commit is contained in:
2026-09-08 20:28:54 +08:00
commit 2ada8d3d5a
37380 changed files with 4886169 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
const commands = {};
/**
* Get the content of Simulator pasteboard.
* It is required that Simulator is in _booted_ state.
*
* @since Xcode 8.1 SDK
* @param {string} encoding ['utf-8'] - The encoding of the returned pasteboard content.
* UTF-8 by default.
* @return {string} Current content of Simulator pasteboard or an empty string.
* @throws {Error} If the corresponding simctl subcommand command
* returns non-zero return code.
* @throws {Error} If the `udid` instance property is unset
*/
commands.getPasteboard = async function getPasteboard (encoding = 'utf8') {
const {stdout} = await this.exec('pbpaste', {
args: [this.requireUdid('pbpaste')],
encoding,
});
return stdout;
};
export default commands;