Skip to content

SvalTek/shimgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shimgen

shimgen builds tiny Windows shim executables that forward to a baked command.

Usage

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.

-cwd modes

  • 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.

Examples

shimgen -name mytool python ./scripts/main.py
shimgen -name mytool ./lua ./app/main.lua -- --no-color

Tests

go test ./...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages