Registry / cli / cli-safeexec

cli-safeexec

JSON →
library1.0.1gogounverified

A safe wrapper for executing external commands with path resolution and security checks.

go get github.com/cli/safeexec
INSTALL
IMPORT
SIG · CLI-SAFEEXEC
C
cli-safeexec
cligov1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

safeexec
github.com/cli/safeexec

Safely look up an executable path

package main import ( "fmt" "github.com/cli/safeexec" ) func main() { path, err := safeexec.LookPath("git") if err != nil { panic(err) } fmt.Println(path) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources
cli-safeexec — go get cli-safeexec · libregistry