options

package
v0.0.0-...-7a8ee34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 9

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL