{"modulePath":"github.com/github/hub","version":"v2.11.2+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cmd\n\n## Types\n\n```go\ntype Cmd struct {\n\tName   string\n\tArgs   []string\n\tStdin  *os.File\n\tStdout *os.File\n\tStderr *os.File\n}\n```\n\n```go\nfunc New(cmd string) *Cmd\n```\n\n```go\nfunc NewWithArray(cmd []string) *Cmd\n```\n\n```go\nfunc (cmd *Cmd) CombinedOutput() (string, error)\n```\n\n```go\nfunc (cmd *Cmd) Exec() error\n```\nExec runs command with exec(3) Note that Windows doesn't support exec(3): [http://golang.org/src/pkg/syscall/exec\\_windows.go#L339](http://golang.org/src/pkg/syscall/exec_windows.go#L339)\n\n```go\nfunc (cmd *Cmd) Run() error\n```\nRun runs command with \\`Exec\\` on platforms except Windows which only supports \\`Spawn\\`\n\n```go\nfunc (cmd *Cmd) Spawn() error\n```\nSpawn runs command with spawn(3)\n\n```go\nfunc (cmd Cmd) String() string\n```\n\n```go\nfunc (cmd *Cmd) Success() bool\n```\n\n```go\nfunc (cmd *Cmd) WithArg(arg string) *Cmd\n```\n\n```go\nfunc (cmd *Cmd) WithArgs(args ...string) *Cmd\n```\n\n","path":"github.com/github/hub/cmd","name":"cmd","synopsis":"","isRedistributable":true}
