fileoption

package
v2.0.0-...-98cc131 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Path string
	// contains filtered or unexported fields
}

func From

func New

func New(def string, us ...interface{}) *Option

func NewCompArch

func NewCompArch() *Option

func (*Option) AddFlags

func (o *Option) AddFlags(fs *pflag.FlagSet)

func (*Option) GetPath

func (o *Option) GetPath(args []string, fss ...vfs.FileSystem) (string, []string)

GetPath return a path depending on the option setting and the first argument. if the option is not set and the first argument denotes a path to a directory or tar file, the first argument if chosen as path.

func (*Option) IsSet

func (o *Option) IsSet() bool

Jump to

Keyboard shortcuts

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