Skip to main content

Crate vanta_shim

Crate vanta_shim 

Source
Expand description

vanta-shim — the per-tool dispatcher (see docs/10-environments.md).

Installed under each tool’s name in ~/.vanta/bin. When invoked it finds the tool that its argv[0] names in the active generation, locates the real binary in the store, and execs it. (Per-directory switching via a resolution cache is a later refinement; this cut dispatches from the active generation.)

Functions§

dispatch
Resolve name in the active generation, locate its real binary in the store, and exec it with args. Returns the child exit code (non-unix) or only returns on failure (unix exec replaces the process).
run
Entry point: derive the tool name from argv[0], dispatch, and map failures to an error exit code. The binary’s main is a thin wrapper over this.