Skip to content

beppler/go-shim

Repository files navigation

go-shim

Quickly add executables to your path.

This project has been inspired on shimexe by Luke Sampson, but implemented in go.

Build from source

To build this project from sources you need go compiler 1.16 or newer.

Clone this repoistory.

On Linux run:

go build -ldflags="-s" -trimpath

On Windows run:

go build -ldflags="-s -w" -trimpath

To create shims

Follow the steps:

  • Copy the go-shim to the name of the command you want to run, for example copy it to go-env.

  • Create the configuration file with the same name of the executable, but with the .ini extension, for example go-env.ini.

  • Inside the configuration file put the full path of the correct program to be executed on the key called command like on the example bellow.

    # example configuration for go-shim
    command = go
    
    # optional fixed args passed to command before the args passed to shim
    args = env

About

Quickly add executables to your path.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages