Documentation ¶
Index ¶
- func Exec(command string, args ...string) error
- func Exec1(command string, args ...string) error
- func Exec2(command string, args ...string) error
- func Exec3(command string, args ...string) error
- func ExecCapture(command string, args ...string) (string, error)
- func FindRoot(cmd *cobra.Command) *cobra.Command
- func IsLastArg(args []string) bool
- func PopArg(args []string) (string, []string)
- func PopArgs(cull int, args []string) ([]string, []string)
- func ReparseArgs(cmd *cobra.Command, args []string) (bool, error)
- func ResetArgs(args ...string)
- type CapturingPassThroughWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CapturingPassThroughWriter ¶
type CapturingPassThroughWriter struct {
// contains filtered or unexported fields
}
CapturingPassThroughWriter is a writer that remembers data written to it and passes it to w
func NewCapturingPassThroughWriter ¶
func NewCapturingPassThroughWriter(w io.Writer) *CapturingPassThroughWriter
NewCapturingPassThroughWriter creates new CapturingPassThroughWriter
func (*CapturingPassThroughWriter) Bytes ¶
func (w *CapturingPassThroughWriter) Bytes() []byte
Bytes returns bytes written to the writer
Click to show internal directories.
Click to hide internal directories.