buf

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(use string, options ...RootCommandOption)

Main is the main.

func NewRootCommand added in v0.4.0

func NewRootCommand(use string, options ...RootCommandOption) *clicobra.Command

NewRootCommand creates a new root Command.

Types

type Flags

type Flags struct {
	Config        string
	AgainstConfig string

	Input        string
	AgainstInput string

	Output              string
	AsFileDescriptorSet bool

	ExcludeImports    bool
	ExcludeSourceInfo bool

	Files             []string
	LimitToInputFiles bool

	CheckerAll        bool
	CheckerCategories []string

	ErrorFormat string
	Format      string
	// contains filtered or unexported fields
}

Flags are flags for the buf CLI.

func (*Flags) NewBaseRunFunc added in v0.4.0

func (f *Flags) NewBaseRunFunc(
	fn func(
		context.Context,
		clienv.Env,
		*zap.Logger,
	) error,
) func(clienv.Env) error

NewBaseRunFunc returns a new run function for the base flags.

type RootCommandOption added in v0.4.0

type RootCommandOption func(*clicobra.Command, *Flags)

RootCommandOption is an option for a root Command.

Jump to

Keyboard shortcuts

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