formatoption

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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

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

func (*Option) Configure

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

func (*Option) IsChanged

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