cmdutil

package
v0.0.0-...-8cc392c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IssueFieldKeyServiceList = "customfield_12300"
	ServicePublishedMark     = "(已发布)"
)

Variables

This section is empty.

Functions

func Ask

func Ask(prompt string, options ...AskOption) (answer string, err error)

func AskVar

func AskVar(prompt string, v *string, options ...AskOption) (err error)

func AsteriskStr

func AsteriskStr(str string) string

func GetPureServiceName

func GetPureServiceName(name string) string

func IsPRMerged

func IsPRMerged(cli *github.Client, ctx context.Context, owner, repo string, number int) (merged bool, mergedAt time.Time, err error)

func IsPublishedService

func IsPublishedService(service string) bool

func MatchServiceName

func MatchServiceName(srcName, target string) bool

func WriteTable

func WriteTable(data [][]string, cols ...string)

Types

type AskOption

type AskOption func(opt *askOptions)

func WithAskDefaultValue

func WithAskDefaultValue(defaultValue string) AskOption

func WithAskPassword

func WithAskPassword(is bool) AskOption

type Factory

type Factory interface {
	JiraClient() (*jira.Client, error)
	GithubClient(ctx context.Context) (*github.Client, error)

	UpdateConfig(cfg *config.Config) (err error)
	Config() config.Config
}

func NewFactory

func NewFactory() (f Factory, err error)

Jump to

Keyboard shortcuts

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