We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bfe87 commit b7d83e7Copy full SHA for b7d83e7
examples/standard_streams.go
@@ -2,6 +2,7 @@ package examples
2
3
import "github.com/SimonBaeumer/cmd"
4
5
+// CreateNewCommandWithStandardStream create new standard stream example
6
func CreateNewCommandWithStandardStream() {
7
c := cmd.NewCommand("echo hello; sleep 1; echo another;", cmd.WithStandardStreams)
8
c.Execute()
examples/working_dir.go
+// CreateWithWorkingDir sets the current working directory
func CreateWithWorkingDir() {
setWorkingDir := func(c *cmd.Command) {
c.WorkingDir = "/tmp"
0 commit comments