dry-run¶
asksh dry-run [--dir path] [--json] <command...>¶
Executes <command...> inside an ephemeral copy-on-temp sandbox and reports the exit code, duration, modified files, stdout, and stderr.
| Flag | Default | Description |
|---|---|---|
--dir |
Current directory | Directory copied into the temporary sandbox |
--json |
false |
Emit JSON instead of text summary |
Text output format¶
When the sandbox runs without OS confinement, Sandbox shows tempdir (degraded) and Note explains why.
--json output schema¶
asksh dry-run --json serializes sandbox.DryRunResult with PascalCase keys and Duration in nanoseconds:
{
"Command": "rm -f notes.txt",
"SandboxKind": "seatbelt",
"Degraded": false,
"Note": "",
"ExitCode": 0,
"Stdout": "",
"Stderr": "",
"ModifiedFiles": [
"notes.txt"
],
"Duration": 18240100
}
Limits and exclusions¶
| Setting | Value |
|---|---|
| Default timeout | 15s |
| Project copy file cap | 500 files |
| Project copy size cap | 10 MiB (10485760 bytes) |
| Skipped entries | .git, .jj, node_modules, symlinks, non-regular files |
| Stdout / stderr cap | 512 KiB (524288 bytes) each |
| OS backends | seatbelt (sandbox-exec on macOS), bwrap (Bubblewrap on Linux), tempdir fallback |