useShell
Executes a shell command declared in fluxlay.yaml and optionally renders the output in an xterm terminal.
Import
Signature
Parameters
UseShellOptions
Return Value
ShellResult
Example
With Terminal
Without Terminal
Behavior
- Executes once on mount.
- Re-executes when
commandIdchanges. - Re-executes at
refreshIntervalintervals if set. - If a
terminalinstance is provided, output is written to the terminal with ANSI support.