formatoption

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 9 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 {
	List    []string
	Default accessio.FileFormat
	Format  accessio.FileFormat
	// contains filtered or unexported fields
}

func From

func New

func New(list ...string) *Option

func (*Option) AddFlags

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

func (*Option) ChangedFormat added in v0.3.0

func (o *Option) ChangedFormat() accessio.FileFormat

func (*Option) Configure added in v0.3.0

func (o *Option) Configure(ctx clictx.Context) error

func (*Option) IsChanged added in v0.3.0

func (o *Option) IsChanged() bool

func (*Option) Mode

func (o *Option) Mode() vfs.FileMode

func (*Option) Usage

func (o *Option) Usage() string

Jump to

Keyboard shortcuts

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