package
0.0.0-20240615164402-742bdff4c8c2
Repository: https://github.com/naive-x/utils.git
Documentation: pkg.go.dev
# README
executil
The package contains various helpers to interact binary execution
# Functions
Run the specified command in os shell (sh or powershell.exe) and return the output.
RunPS runs the specified command through powershell.exe.
RunSafe necessarily does not prevent command injection but prevents/limits damage to an extent
"the os/exec package intentionally does not invoke the system shell and does not expand
any glob patterns or handle other expansions, pipelines, or redirections typically done by shells"
This also mitigates windows security risk in go<1.19.
RunSh the specified command through sh.