argsflag

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 3 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) IsSet

func (c *CliFlag) IsSet() bool

func (*CliFlag) Names

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

func (*CliFlag) String

func (c *CliFlag) String() string

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