argsflag

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package argsflag defines a flag that can accept template arguments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliFlag

type CliFlag struct {
	Name  string
	Usage string
	// contains filtered or unexported fields
}

CliFlag implements the Cli package's Flag interface.

func NewCliFlag

func NewCliFlag(Name, Usage string, Values map[string]string) *CliFlag

func (*CliFlag) Apply

func (c *CliFlag) Apply(f *flag.FlagSet) error

func (*CliFlag) GetDefaultText added in v0.6.1

func (c *CliFlag) GetDefaultText() string

func (*CliFlag) GetEnvVars added in v0.6.1

func (c *CliFlag) GetEnvVars() []string

func (*CliFlag) GetUsage added in v0.6.1

func (c *CliFlag) GetUsage() string

func (*CliFlag) GetValue added in v0.6.1

func (c *CliFlag) GetValue() string

func (*CliFlag) IsSet

func (c *CliFlag) IsSet() bool

func (*CliFlag) IsSliceFlag added in v0.6.1

func (c *CliFlag) IsSliceFlag() bool

func (*CliFlag) IsVisible added in v0.6.1

func (c *CliFlag) IsVisible() bool

func (*CliFlag) Names

func (c *CliFlag) Names() []string

func (*CliFlag) String

func (c *CliFlag) String() string

func (*CliFlag) TakesValue added in v0.6.1

func (c *CliFlag) TakesValue() bool

type Flag

type Flag struct {
	Values map[string]string
	// contains filtered or unexported fields
}

Flag implements the standard library's Value and Getter interfaces.

func (*Flag) Get

func (f *Flag) Get() interface{}

func (*Flag) Set

func (f *Flag) Set(rawValue string) error

func (*Flag) String

func (f *Flag) String() string

Jump to

Keyboard shortcuts

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