cwbgy

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLI

func CLI(args []string) int

func Constraint

func Constraint(f *flag.FlagSet, name string, value semver.Constraints, usage string) *semver.Constraints

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(opts ...AppOption) *App

func (*App) CheckCNG

func (a *App) CheckCNG() error

func (*App) CheckProjects

func (a *App) CheckProjects() error

func (*App) Exec

func (a *App) Exec() error

type AppOption

type AppOption func(*App)

func WithCNG

func WithCNG(cng bool) AppOption

func WithClient

func WithClient(client *http.Client) AppOption

func WithConstraints

func WithConstraints(constraints *semver.Constraints) AppOption

func WithLimit

func WithLimit(limit int) AppOption

func WithLogger

func WithLogger(l *log.Logger) AppOption

func WithMainBranch

func WithMainBranch(mainBranch bool) AppOption

func WithProjects

func WithProjects(projects ...string) AppOption

func WithVerbose

func WithVerbose(verbose bool) AppOption

Jump to

Keyboard shortcuts

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