cli

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Make

func Make() *cobra.Command

func ValidateParams

func ValidateParams(params []string) func(cmd *cobra.Command, args []string) error

Types

type FlagData

type FlagData struct {
	TC                  TCFlags
	PR                  PRFlags
	Wait                WaitFlags
	ServicePackagesMode bool
	AllTests            bool
	SkipQueue           bool
	OpenBrowser         bool
}

type GithubRepo

type GithubRepo struct {
	Owner string
	Repo  string
	Token *string
}

func NewGithubRepo

func NewGithubRepo(owner, repo, token string) GithubRepo

func NewGithubRepoFromViper

func NewGithubRepoFromViper() GithubRepo

func (GithubRepo) NewClient

func (gr GithubRepo) NewClient() (*github.Client, context.Context)

func (GithubRepo) PrCmd

func (gr GithubRepo) PrCmd(pr int, fileRegExStr, splitTestsAt string, open bool) (*map[string][]string, error)

func (GithubRepo) PrTests

func (gr GithubRepo) PrTests(pri int, filterRegExStr, splitTestsAt string) (*map[string][]string, error)

todo break this apart - get/check PR state, get files, filter/process files, get tests, get services.

func (GithubRepo) PrURL

func (gr GithubRepo) PrURL(pr int) string

type PRFlags

type PRFlags struct {
	Repo          string
	Token         string
	FileRegEx     string
	TestSplit     string
	LatestTCBuild bool
}

type TCBuild

type TCBuild struct {
	XMLName    xml.Name `xml:"build"`
	ID         string   `xml:"id,attr"`
	Number     string   `xml:"number,attr"`
	State      string   `xml:"state,attr"`
	BranchName string   `xml:"branchName,attr"`
	WebURL     string   `xml:"webUrl,attr"`
}

type TCBuilds

type TCBuilds struct {
	XMLName xml.Name  `xml:"builds"`
	Builds  []TCBuild `xml:"build"`
}

type TCFlags

type TCFlags struct {
	ServerURL   string
	BuildTypeID string
	Token       string
	User        string
	Pass        string
	Parameters  string
}

type TeamCity

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

func NewTeamCity

func NewTeamCity(server, token, username, password string) TeamCity

func NewTeamCityFromViper

func NewTeamCityFromViper() TeamCity

func NewTeamCityUsingBasicAuth

func NewTeamCityUsingBasicAuth(server, username, password string) TeamCity

func NewTeamCityUsingTokenAuth

func NewTeamCityUsingTokenAuth(server, token string) TeamCity

func (TeamCity) BuildCmd

func (tc TeamCity) BuildCmd(buildTypeID, buildProperties, branch, testRegex, serviceInfo string, wait bool, skipQueue bool, open bool) error

func (TeamCity) TestResultsByPRCmd

func (tc TeamCity) TestResultsByPRCmd(pr, buildTypeID string, latest, wait bool) error

func (TeamCity) TestResultsCmd

func (tc TeamCity) TestResultsCmd(buildID string, wait bool) error

type WaitFlags

type WaitFlags struct {
	Wait         bool
	QueueTimeout int
	RunTimeout   int
}

Jump to

Keyboard shortcuts

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