commander-cli/cmd

View on GitHub
examples/standard_streams.go

Summary

Maintainability
A
0 mins
Test Coverage
package examples

import "github.com/commander-cli/cmd"

// CreateNewCommandWithStandardStream create new standard stream example
func CreateNewCommandWithStandardStream() {
    c := cmd.NewCommand("echo hello; sleep 1; echo another;", cmd.WithStandardStreams)
    c.Execute()
}