buf

package
v0.43.3-0...-9926edd Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

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

Main is the main.

func NewRootCommand

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

NewRootCommand returns a new root command.

This is public for use in testing.

Types

type MainOption

type MainOption func(*mainOptions)

MainOption is an option for command construction.

func WithRootCommandModifier

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