/** * SH Command Options * @typedef {object} shOptionsDeprecated * @property {string} [rows] - Whether to split the output row by row. * Valid options are ``on`` or ``off``. Default is ``off``. * @property {string} [error=fast] - Determines action when an error is encountered. * Valid options are ``on``, ``off``, or ``fast``. Default is ``fast``. Using ``on`` * will cause the script execution to stop and log a full error report. * Using ``off`` or ``fast`` continues executing the script. The Difference is that ``fast`` * will log a brief error report and ``off`` will not. * @property {string} [hex=off] - Whether to output data in hex format. * Valid options are ``on`` or ``off``. Default is ``off``. * @property {string} [before] - The CCSID to convert to before command call. * @property {string} [after] - The CCSID to convert to after command call. */ /** * @deprecated Replaced by ``CommandCall`` and will be removed in the next major version. * @description Generates a PASE shell command. * @param {string} sh - The command to string run. * @param {shOptionsDeprecated} [options] - The command options. * @returns {string} The generated command. */ function iSh(sh, options) { iShDeprecate('As of v1.0, class \'iSh()\' is deprecated. Please use \'CommandCall\' instead.'); const command = new CommandCall({ command: sh, type: 'sh', options }); return command.toXML(); }