This example demonstrates how to integrate scripts written in Python, Node.js, and PowerShell with Trellis.
Trellis adheres to a simple, universal contract for external tools, inspired by the Unix philosophy:
TRELLIS_ARG_.
args: { name: "Bob" } becomes TRELLIS_ARG_NAME="Bob".Stdout.
Stderr, which Trellis captures for debugging.tools.yaml: Registers the scripts as named tools (greet_py, greet_js, greet_ps).py-tool.py: Python implementation (using os.environ and print(json.dumps)).js-tool.js: Node.js implementation (using process.env and console.log).ps-tool.ps1: PowerShell implementation (using $env: and ConvertTo-Json).start.md: The entry point flow that orchestrates the execution.Navigate to this directory and run Trellis:
# Run interactively
go run ../../cmd/trellis run .
# Run headless (for testing)
go run ../../cmd/trellis run . --headless
python, node, and pwsh (or powershell) are in your PATH.tools.yaml, the command field must match an executable on your system.