# README
Command - Better Cmd for Go
Installation
To install the package, run:
go get -u github.com/go-zoox/command
Getting Started
// hello world
cmd := &command.Command{
Script: `echo "hello world"`,
}
if err := cmd.Run(); err != nil {
log.Fatal("Failed to run command: %s", err)
}
// multiline scripts
cmd := &Command{
Script: `
echo 1
echo 2
echo 3
`,
}
if err := cmd.Run(); err != nil {
log.Fatal("Failed to run command: %s", err)
}
License
GoZoox is released under the MIT License.
# Functions
New creates a new command runner.
# Variables
Version is the version of this package.
# Interfaces
Command is the command runner interface.
# Type aliases
Config is the command runner config.