Documentation ¶
Index ¶
- type CommandOptions
- func (c *CommandOptions) AddFlag(flag string)
- func (c *CommandOptions) AddOption(name, value string)
- func (c *CommandOptions) AddOptions(values ...string)
- func (c *CommandOptions) AddValue(value string)
- func (c *CommandOptions) GetAll() []string
- func (c *CommandOptions) GetOptionValue(option string) string
- func (c *CommandOptions) IncludesOption(option string) bool
- func (c *CommandOptions) IncludesString(substr string) bool
- func (c *CommandOptions) ToString() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandOptions ¶
type CommandOptions struct {
// contains filtered or unexported fields
}
func NewCommandOptions ¶
func NewCommandOptions(options string) (*CommandOptions, error)
func NewCommandOptionsFromArray ¶
func NewCommandOptionsFromArray(options []string) *CommandOptions
func (*CommandOptions) AddFlag ¶
func (c *CommandOptions) AddFlag(flag string)
func (*CommandOptions) AddOption ¶
func (c *CommandOptions) AddOption(name, value string)
func (*CommandOptions) AddOptions ¶
func (c *CommandOptions) AddOptions(values ...string)
func (*CommandOptions) AddValue ¶
func (c *CommandOptions) AddValue(value string)
func (*CommandOptions) GetAll ¶
func (c *CommandOptions) GetAll() []string
func (*CommandOptions) GetOptionValue ¶
func (c *CommandOptions) GetOptionValue(option string) string
func (*CommandOptions) IncludesOption ¶
func (c *CommandOptions) IncludesOption(option string) bool
func (*CommandOptions) IncludesString ¶
func (c *CommandOptions) IncludesString(substr string) bool
func (*CommandOptions) ToString ¶
func (c *CommandOptions) ToString() string
Click to show internal directories.
Click to hide internal directories.