Safe wrapper around Arrea.Command.execute/2.
This is the single entry point for all command execution in Trebejo.
Modules must call SafeCommand.execute/3 instead of calling
Arrea.Command.execute/2 directly.
Validation ensures:
- the command name is non‑empty and contains only safe characters
- each argument passes the
shell_quote/1transform
Usage
# Run a simple command:
SafeCommand.execute("echo", ["hello"], validate: false)
Summary
Functions
Executes a command string directly (legacy API).
Executes a command with the given arguments.
Functions
Executes a command string directly (legacy API).
Validates the command and delegates to Arrea.Command.execute/2.
For new code, prefer execute/3 with explicit arg lists.
Executes a command with the given arguments.
Options
:validate— whenfalse, skips the command-name validation (default:true). Passed through toArrea.Command.execute/2.- All other options are forwarded to
Arrea.Command.execute/2.