buf

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version is the version of buf.
	Version = "0.32.0"
)

Variables

This section is empty.

Functions

func Main

func Main(name string, options ...MainOption)

Main is the main.

func NewRootCommand added in v0.4.0

func NewRootCommand(
	name string,
	rootCommandModifier func(*appcmd.Command, appflag.Builder, bufcli.ModuleResolverReaderProvider),
	moduleResolverReaderProvider bufcli.ModuleResolverReaderProvider,
) *appcmd.Command

NewRootCommand returns a new root command.

This is public for use in testing.

Types

type MainOption added in v0.21.0

type MainOption func(*mainOptions)

MainOption is an option for command construction.

func WithModuleResolverAndReaderProvider added in v0.25.0

func WithModuleResolverAndReaderProvider(moduleResolverReaderProvider bufcli.ModuleResolverReaderProvider) MainOption

WithModuleResolverAndReaderProvider returns a new MainOption that uses the given ModuleResolverReaderProvider.

func WithRootCommandModifier added in v0.21.0

func WithRootCommandModifier(rootCommandModifier func(*appcmd.Command, appflag.Builder, bufcli.ModuleResolverReaderProvider)) MainOption

WithRootCommandModifier returns a new MainOption that modifies the root Command.

Jump to

Keyboard shortcuts

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