Expand description
Execution core: shim generation, PATH handling, anti-recursion real-binary resolution, process spawning, and classification/passthrough policy.
Modules§
- classify
- Command classification and passthrough policy (spec §11).
- command_
key command_keyhelpers: strip cosmetic noise, keep significant args.- interactive
- Interactive / watch / TTY detection (spec §21.3).
- path
PATHmanipulation, always overOsString(paths may be non-UTF8).- resolve
- Anti-recursion real-binary resolution. Walk
PATHleft→right, skipping the shim dir and dejavu’s own dir, and return the first matching executable. - shim
- Shim generation. Each shim is a minimal
/bin/shscript that re-invokesdejavu run. Writes are idempotent (temp + atomic rename) and only touch files whose content or exec bit differs. - spawn
- Process spawning behind a
CommandRunnerseam (so bench/tests can inject fixture output), plus the single exit-code normalization point.
Structs§
- Exec
Outcome - The result of running the real command.
Enums§
- Exec
Mode - The decision the classifier hands to the runtime.
- Family
- Command families that Dejavu can optimize (spec §10.1).
- Passthrough
Reason