CLI

CLI

Source:

Below are the APIs of CLI (Command Line Interface). Some inappropriate titles are used because they are generated by JsDoc.

Methods

(static) launchApp()

Source:

Launch the specifying directory.

Example
Usage: launchApp <app> [args...] [options]

The command to launch an application

Options:
  -V, --version          Output the version number
  -S, --shell            Wrap with CMD.EXE. (default: false)
  -W, --winStyle <style> See https://docs.tuckn.net/WshUtil/Wsh.Constants.windowStyles.html. (default: "activeDef")
  -A, --runsAsAdmin      Run as administrator (High WIL)
  -U, --runsAsUser       Run as user (Medium WIL)
  -L, --logger <val>     <level>/<transportation> (e.g. "warn/popup").  (default: "info/console")
  -R, --dry-run          No execute. Outputs the string of command. (default: false)
  -h, --help             Output usage information

(static) schemaLaunch()

Source:

Launch applications defined with a schema JSON.

Example
Usage: schemaLaunch <taskName> [overwriteKey:val...] [options]

The command to launch applications defined with a schema JSON

Options:
  -V, --version          Output the version number
  -D, --dir-path <path>  The path name where the schema JSON is located. <Directory Path> or "cwd", "portable", "userProfile". Default: "cmd" is "%CD%\.wsh"
  -F, --file-name <name> A JSON file name. (default: "settings.json")
  -E, --encoding <name>  The JSON file encoding. (default: "utf-8")
  -N, --prop-name <name> A property name of the schema object. (default: "appLauncherSchema")
  -L, --logger <val>     <level>/<transportation>. e.g. "warn/popup".  (default: "info/console")
  -R, --dry-run          No execute. Outputs the string of command. (default: false)
  -h, --help             Output usage information