Versions in this module Expand all Collapse all v1 v1.11.0 Mar 16, 2021 Changes in this version + type ExitError struct + Code int + Message string + func (e *ExitError) Error() string + type Runner interface + All func(args []string, disableFormat, disableLint, fix bool) error + BreakCheck func(args []string, gitBranch string, descriptorSetPath string) error + BreakDescriptorSet func(args []string, outputPath string) error + CacheDelete func() error + CacheUpdate func(args []string) error + Compile func(args []string, dryRun bool) error + Create func(args []string, pkg string) error + DescriptorSet func(args []string, includeImports bool, includeSourceInfo bool, outputPath string, ...) error + Files func(args []string) error + Format func(args []string, overwrite, diffMode, lintMode, fix bool) error + GRPC func(args, headers []string, ...) error + Gen func(args []string, dryRun bool) error + Init func(args []string, uncomment bool, document bool) error + InspectPackageDeps func(args []string, name string) error + InspectPackageImporters func(args []string, name string) error + InspectPackages func(args []string) error + Lint func(args []string, listAllLinters bool, listLinters bool, listAllLintGroups bool, ...) error + Version func() error + func NewRunner(workDirPath string, input io.Reader, output io.Writer, options ...RunnerOption) Runner + type RunnerOption func(*runner) + func RunnerWithCachePath(cachePath string) RunnerOption + func RunnerWithConfigData(configData string) RunnerOption + func RunnerWithDevelMode() RunnerOption + func RunnerWithErrorFormat(errorFormat string) RunnerOption + func RunnerWithJSON() RunnerOption + func RunnerWithLogger(logger *zap.Logger) RunnerOption + func RunnerWithProtocBinPath(protocBinPath string) RunnerOption + func RunnerWithProtocURL(protocURL string) RunnerOption + func RunnerWithProtocWKTPath(protocWKTPath string) RunnerOption + func RunnerWithWalkTimeout(walkTimeout time.Duration) RunnerOption