Skip to content

std.exec-script action

Description

ScriptAction runs a shell script via <shell> -c <script>. Shell defaults to sh; set it to bash, python3, or any other interpreter that accepts -c.

Source: internal/exec/script_action.go:14

Example usage:

imports: {
  std: 'github.com/cloudboss/unobin-library-std'
}

actions: {
  example: std.exec-script {
    # Set input fields here.
  }
}

Inputs

script

string

required

shell

string

default sh

environment

map(string)

working-dir

string

Input Constraints

This kind declares no extra input constraints.

Outputs

stdout

string

stderr

string

exit-code

integer

duration

integer