Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
firstrun
command
Command firstrun explains, previews, and then runs an unfamiliar shell command β so you never blindly execute a script you don't understand.
|
Command firstrun explains, previews, and then runs an unfamiliar shell command β so you never blindly execute a script you don't understand. |
|
internal
|
|
|
buildinfo
Package buildinfo exposes version metadata injected at build time via -ldflags.
|
Package buildinfo exposes version metadata injected at build time via -ldflags. |
|
catalog
Package catalog holds firstrun's human-facing knowledge about common commands: a one-line description of what each does, and whether the command has a native "dry run" mode firstrun can offer instead of executing for real.
|
Package catalog holds firstrun's human-facing knowledge about common commands: a one-line description of what each does, and whether the command has a native "dry run" mode firstrun can offer instead of executing for real. |
|
cli
Package cli wires the firstrun command-line interface together.
|
Package cli wires the firstrun command-line interface together. |
|
config
Package config loads firstrun's optional TOML configuration.
|
Package config loads firstrun's optional TOML configuration. |
|
effect
Package effect turns a single command's argument vector into a set of predicted, neutral effects β what it reads, writes, deletes, downloads, or executes.
|
Package effect turns a single command's argument vector into a set of predicted, neutral effects β what it reads, writes, deletes, downloads, or executes. |
|
llm
Package llm provides a tiny, dependency-free client for the chat APIs of Anthropic, OpenAI, and Ollama.
|
Package llm provides a tiny, dependency-free client for the chat APIs of Anthropic, OpenAI, and Ollama. |
|
narrate
Package narrate turns an analyzed plan into a short, plain-English explanation.
|
Package narrate turns an analyzed plan into a short, plain-English explanation. |
|
plan
Package plan assembles a full, inspectable preview of a command or script: for every step it records what runs, a plain-English summary, the predicted effects, and the risk flags.
|
Package plan assembles a full, inspectable preview of a command or script: for every step it records what runs, a plain-English summary, the predicted effects, and the risk flags. |
|
render
Package render formats an analyzed plan (and an optional live syscall trace) for output: a styled terminal view, a plain-text version, Markdown, and stable JSON for scripts.
|
Package render formats an analyzed plan (and an optional live syscall trace) for output: a styled terminal view, a plain-text version, Markdown, and stable JSON for scripts. |
|
risk
Package risk applies fast, deterministic heuristics to a command and the effects it is predicted to have, and flags the things a person should look at twice before running: destructive deletions, raw-disk writes, piping a download straight into a shell, privilege escalation, world-writable permissions, and writes into system directories.
|
Package risk applies fast, deterministic heuristics to a command and the effects it is predicted to have, and flags the things a person should look at twice before running: destructive deletions, raw-disk writes, piping a download straight into a shell, privilege escalation, world-writable permissions, and writes into system directories. |
|
run
Package run executes commands on the user's behalf β but only after firstrun has shown a preview and the user has confirmed.
|
Package run executes commands on the user's behalf β but only after firstrun has shown a preview and the user has confirmed. |
|
shell
Package shell parses a shell command or script into a structured, inspectable form using the mvdan.cc/sh parser.
|
Package shell parses a shell command or script into a structured, inspectable form using the mvdan.cc/sh parser. |
|
trace
Package trace runs a command under a syscall tracer so firstrun can show you exactly what it does at the system-call level.
|
Package trace runs a command under a syscall tracer so firstrun can show you exactly what it does at the system-call level. |
|
tui
Package tui renders firstrun's interactive confirmation menu.
|
Package tui renders firstrun's interactive confirmation menu. |
Click to show internal directories.
Click to hide internal directories.