{"modulePath":"github.com/Originate/git-town","version":"v7.3.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\n## Functions\n\n```go\nfunc SetDebug(value bool)\n```\nSetDebug sets whether or not we are in debug mode\n\n## Types\n\n```go\ntype Result struct {\n\t// contains filtered or unexported fields\n}\n```\nResult contains the results of a command run in a subshell.\n\n```go\nfunc Run(cmd string, args ...string) *Result\n```\nRun executes the command given in argv notation.\n\n```go\nfunc RunDirEnv(dir string, env []string, cmd string, args ...string) *Result\n```\nRunDirEnv executes the given command in the given directory, using the given environment variables.\n\n```go\nfunc RunInDir(dir string, cmd string, args ...string) *Result\n```\nRunInDir executes the given command in the given directory.\n\n```go\nfunc (c *Result) Args() []string\n```\nArgs provids the arguments used when running the command.\n\n```go\nfunc (c *Result) Command() string\n```\nCommand provides the command run that led to this result.\n\n```go\nfunc (c *Result) Err() error\n```\nErr returns the error that this command encountered. Runs the command if it hasn't so far.\n\n```go\nfunc (c *Result) Output() string\n```\nOutput returns the output of this command. Runs if it hasn't so far.\n\n```go\nfunc (c *Result) OutputContainsLine(line string) bool\n```\nOutputContainsLine returns whether the output of this command contains the given line\n\n```go\nfunc (c *Result) OutputContainsText(text string) bool\n```\nOutputContainsText returns whether the output of this command contains the given text\n\n```go\nfunc (c *Result) OutputLines() []string\n```\nOutputLines returns the output of this command, split into lines. Runs if it hasn't so far.\n\n```go\nfunc (c *Result) OutputSanitized() string\n```\nOutputSanitized provides the output without ANSI color codes.\n\n","path":"github.com/Originate/git-town/src/command","name":"command","synopsis":"","isRedistributable":true}
