Global Module
Overview
The global module can be used by calling methods directly, without a prefix object name.
CLI
getCliArgs Get CLI command-line arguments
- Get CLI command-line arguments
- When using with AI, prefer CLI args first; fall back elsewhere if unavailable
- Enables AI auto-parameter passing and post-pack testing from other sources
- Requires EC standalone 6.9.0+
- @return
{null|JSON}JSON object; null means not launched from CLI
function main() {
let a = getCliArgs();
if (a == null) {
// Get from elsewhere
}
logd(JSON.stringify(a))
}
main();
Automation Engine
Get automation engine mode
- Get automation engine mode
- @return
{string}single = single-app mode | dual = dual-app mode
function main() {
logd(getAutomationEngineMode())
}
main();