shimgen builds tiny Windows shim executables that forward to a baked command.
shimgen -name OUT [-cwd inherit|target] <cmd> [cmdArgs...] [-- embeddedArgs...]<cmd> [cmdArgs...]are baked into the shim.-- embeddedArgs...are fixed args appended before runtime args.- Path-like baked/embedded args are converted to absolute paths at build time.
inherit(default): the shim uses the caller's working directory.target: the shim sets its working directory to the baked entrypoint directory.- If
<cmd>is path-like, its directory is used. - Otherwise, if the first baked arg is path-like, its directory is used.
- If neither is path-like, the shim exits with an error.
- If
shimgen -name mytool python ./scripts/main.py
shimgen -name mytool ./lua ./app/main.lua -- --no-colorgo test ./...