options

package
v0.33.7 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedOptions

type CompletedOptions struct {
	// contains filtered or unexported fields
}

func (*CompletedOptions) Validate

func (o *CompletedOptions) Validate() []error

type ExtraOptions

type ExtraOptions struct{}

type GenericOptions added in v0.25.0

type GenericOptions struct {
	RootDirectory string
	MappingFile   string
}

func NewGeneric added in v0.25.0

func NewGeneric(rootDir string) *GenericOptions

func (*GenericOptions) AddFlags added in v0.25.0

func (o *GenericOptions) AddFlags(fss *cliflag.NamedFlagSets)

func (*GenericOptions) Complete added in v0.25.0

func (o *GenericOptions) Complete() (*GenericOptions, error)

func (*GenericOptions) Validate added in v0.25.0

func (o *GenericOptions) Validate() []error

type Options

type Options struct {
	Output io.Writer

	Generic GenericOptions
	Server  serveroptions.Options
	Extra   ExtraOptions
}

func NewOptions

func NewOptions(rootDir string) *Options

func (*Options) AddFlags

func (o *Options) AddFlags(fss *cliflag.NamedFlagSets)

func (*Options) Complete

func (o *Options) Complete(ctx context.Context) (*CompletedOptions, error)

Jump to

Keyboard shortcuts

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