Files
docs.grlx.dev/src/content/docs/ingredients/cmd.md
2023-11-06 11:11:37 -06:00

943 B

title, description
title description
grlx.ingredients.cmd cmd

The cmd ingredient allows for us to run arbitrary shell commands against sprouts.

cmd.run

Runs shell commands against a sprout

Parameters

parameter type required description
name string true the command to run
runas string false user who will run this command
path string false the path to the binary, this is prepended to the name
cwd string false the directory to run this command
env list false environmental variables to set like the following: key1=value1
timeout string false set a timeout for the command using Go Duration
cmd.run:
    - name: go version
    - runas: super-cool-user
    - path: /usr/local/bin
    - cwd: /tmp
    - env:
      - GOOS=linux
      - GOARCH=arm64
    - timeout: 10s