flags

package
v1.15.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Config  string
	Output  string
	InPlace bool
}

Options stores options for the config commands

func (Options) CreateOutput

func (o Options) CreateOutput() (io.WriteCloser, error)

CreateOutput creates the writer for the output.

func (Options) EnsureOutputFolder

func (o Options) EnsureOutputFolder() error

EnsureOutputFolder creates the output folder if it does not exist. If the output folder is not specified (i.e. output to STDOUT), it is ignored.

func (Options) GetOutput

func (o Options) GetOutput() string

GetOutput returns the effective output

func (Options) Validate

func (o Options) Validate() error

Validate checks whether the options are valid.

Jump to

Keyboard shortcuts

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