Registry / cli / sh-v3
library3.13.1gogounverified

Package sh provides a shell-like interface for running commands and pipelines in Go.

go get mvdan.cc/sh/v3
INSTALL
IMPORT
SIG · SH-V3
S
sh-v3
cligov3.13.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.

sh
mvdan.cc/sh/v3

Runs a shell command and prints its output.

package main import ( "context" "fmt" "mvdan.cc/sh/v3" ) func main() { out, err := sh.Exec(context.Background(), "echo", "hello") if err != nil { panic(err) } fmt.Println(out) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
sh-v3 — go get sh-v3 · libregistry