cli

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePR

func MakePR(arg *Args) error

func Run

func Run(name, version, commit, date string) int

func ValidateArgs

func ValidateArgs(arg *Args) error

Types

type Args

type Args struct {
	cli.Helper
	DryRun        bool     `` /* 130-byte string literal not displayed */
	Token         string   `cli:"token" usage:"Token for GitHub API" validate:"required" namev:"--token or environment variable:GO_PR_RELEASE_TOKEN"`
	Title         string   `cli:"title" usage:"Title for GitHub PullRequest" namev:"--title"`
	ReleaseBranch string   `` /* 144-byte string literal not displayed */
	DevelopBranch string   `` /* 179-byte string literal not displayed */
	Template      string   `` /* 163-byte string literal not displayed */
	Labels        []string `` /* 166-byte string literal not displayed */
	Reviewers     []string `` /* 151-byte string literal not displayed */
	Verbose       bool     `cli:"verbose" usage:"Output detailed logs" namev:"--verbose"`
	Version       bool     `cli:"v,version" usage:"Version" namev:"--version"`
}

func BindArgs

func BindArgs(ctx *cli.Context, arg *Args) (*Args, error)

func LookupEnv

func LookupEnv() (*Args, error)

Jump to

Keyboard shortcuts

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