Skip to main content

std:exec

The std:exec executor is used to order to execute a file using a system provided shell.

The file could be be :

  • Any executable file for your current platform
  • A script, like bash, powershell or python

Supported options are :

  • program (required): Path to the file to execute. Relative paths will be treated as relative to the project's root directory.
  • arguments: A list of arguments that will be passed when executing the file. Defaults to an empty array.
  • cwd: Custom working directory to set for the spawned process.
  • shell: Used to specify a custom shell program to use. Works similarly as in the std:commands executor.
  • quiet: Disable process output.
{
"executor": "std:exec",
"options": {
"program": "{{ root }}/scripts/build.sh",
"arguments": ["arg1", "arg2", "arg3"],
"cwd": "/working/dir",
"shell": "/bin/sh"
}
}