Documentation
¶
Index ¶
- func CleanOutput(str string) string
- func CombinedOutput(command string) ([]byte, error)
- func Command(command string) *exec.Cmd
- func ExitError(err error) (*exec.ExitError, bool)
- func Output(command string) ([]byte, error)
- func WithStdin(command string, r io.Reader) ([]byte, error)
- type CLICommand
- type CLIOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanOutput ¶
CleanOutput returns the output from the cursor character.
func CombinedOutput ¶
CombinedOutput executes a shell command and returns combined output from stdout and stderr.
func ExitError ¶
ExitError converts an error to an exec.ExitError.
func Output ¶
Output executes a shell command and returns output from stdout.
Types ¶
type CLICommand ¶
type CLICommand struct {
// contains filtered or unexported fields
}
CLICommand repreents a command-line command to execute.
type CLIOutput ¶
type CLIOutput struct {
// contains filtered or unexported fields
}
CLIOutput represents the output from executing a CLICommand.
Source Files
¶
- command.go
Click to show internal directories.
Click to hide internal directories.