go-shim

command module
v0.0.0-...-3ed8b30 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2023 License: MIT Imports: 7 Imported by: 0

README

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
    

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL