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 and exec its real binary with args. Resolution order:
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.