Documentation ¶
Index ¶
- func ExecuteCommand(executor CommandExecutor, cmd Command) error
- func JoinCommandEvents(left func(cmd *cobra.Command, args []string) error, ...) func(cmd *cobra.Command, args []string) error
- func NewContextWithSignalListener(ctx context.Context, signalChannel <-chan os.Signal) context.Context
- func SignalListener(signals ...os.Signal) <-chan os.Signal
- type Command
- type CommandExecutor
- type UnexpectedResultError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteCommand ¶
func ExecuteCommand(executor CommandExecutor, cmd Command) error
func JoinCommandEvents ¶ added in v2.2.5
func NewContextWithSignalListener ¶ added in v2.2.10
Types ¶
type CommandExecutor ¶
type UnexpectedResultError ¶
type UnexpectedResultError struct { StdOut string StdErr string ExitCode *int UnderlyingError error }
func (*UnexpectedResultError) Error ¶
func (u *UnexpectedResultError) Error() string
Click to show internal directories.
Click to hide internal directories.