Skip to Content
ScriptingHelper Functions

Helper Functions

Execute CLI Command

To execute a CLI command and get a response, use the exec helper function.

var result = await tc.exec("command"); // example var result = await tc.exec("node -v");

Delay Function

  • To delay script execution, use the API: await tc.delay(1000);
// delay for 5 seconds await tc.delay(5000); console.log("delayed for 5 seconds");
Last updated on