cmd

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:     "beer",
	Version: version,
	Short:   "CLI for managing your JIRA / Gerrit / git workflow.",
	Long: `Beer Review is a CLI for managing your JIRA <--> Gerrit workflow.

It can be used to create new tickets, work on existing ones, and submit reviews.

For example:
	$ beer brew ABC-123

	This will branch from the current HEAD and set the branch name to ABC-123 and add
	an empty commit with the JIRA ID and JIRA summary text as the first line of
	the commit message.`,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Config added in v0.6.3

type Config struct {
	Jira       JiraConfig
	Gerrit     GerritConfig
	GitHub     GithubConfig
	ReviewTool ReviewTool
}

type Defaults added in v0.6.3

type Defaults struct {
	Branch     string
	ReviewTool ReviewTool
}

type FileType added in v0.4.0

type FileType struct {
	Name      string
	Extension string
}

type GerritConfig

type GerritConfig struct {
	URL string
}

GerritConfig configuration structure for gerrit

type GithubConfig added in v0.6.3

type GithubConfig struct {
}

type JiraConfig

type JiraConfig struct {
	URL      string
	Username string
	Password string
}

JiraConfig configuration structure for JIRA

type ReviewTool added in v0.6.3

type ReviewTool string
const (
	Gerrit ReviewTool = "gerrit"
	GitHub ReviewTool = "github"
)

func (ReviewTool) Normalize added in v0.6.3

func (r ReviewTool) Normalize() ReviewTool

Jump to

Keyboard shortcuts

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