command
module
Version:
v0.0.0-...-3ed8b30
Opens a new window with list of versions in this module.
Published: Sep 17, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.