Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandEntry ¶
type CommandEntry struct { CommandEntryFunc `json:"-"` // contains filtered or unexported fields }
func NewCmd ¶
func NewCmd(cliName string, opts ...CommandEntryOption) (opt *CommandEntry)
NewCmd
use as changeCommandEntry := NewCmd( WithRunPath(""), )
func (*CommandEntry) Exec ¶
func (c *CommandEntry) Exec() error
func (*CommandEntry) ExecCode ¶
func (c *CommandEntry) ExecCode() int
func (*CommandEntry) ExecStdErr ¶
func (c *CommandEntry) ExecStdErr() string
func (*CommandEntry) ExecStdOut ¶
func (c *CommandEntry) ExecStdOut() string
func (*CommandEntry) IsCliAvailable ¶
func (c *CommandEntry) IsCliAvailable() bool
type CommandEntryFunc ¶
type CommandEntryOption ¶
type CommandEntryOption func(*CommandEntry)
func WithCommandArgs ¶
func WithCommandArgs(commandArgs []string) CommandEntryOption
func WithRunPath ¶
func WithRunPath(runPath string) CommandEntryOption
Click to show internal directories.
Click to hide internal directories.