by Minh Le
Version 1 (March 1, 2026)
Download (108 downloads)
See the tutorial version for more usage instructions! This flow contains only the function itself.
This is an extension of my run function that allows multiline scripting and environment control with Automate flows.
@global (statement=1) cmd(env, commands, callerUri*, api*) => __run__, args*
/** Low cost (2 blocks) function caller that stores and manages the call and return stacks
@param env (dictionary) :
Current environment, usually derived from the flow beginning payload
@param commands (string) :
Commands to run. This must be formatted properly to be parsed. Commands follow the syntax:
$uri_or_function_name(giveVar, new return_key-of-function(takeVar, new returnTo(result1, new2 continueTo(result)
$statements/1 ()"
}
*/