cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgBase          = "base"
	ArgBaseShort     = "b"
	ArgTemplate      = "template"
	ArgTemplateShort = "t"
)

Variables

This section is empty.

Functions

func BranchNameFromTemplate added in v0.3.0

func BranchNameFromTemplate(tmpl string, issue *jira.Issue) (string, error)

BranchNameFromTemplate generates a branch name from a given template and Jira issue.

func Execute

func Execute()

Types

type CopyCommand added in v0.4.0

type CopyCommand struct {
	Command *cobra.Command
	// contains filtered or unexported fields
}

func NewCopyCommand added in v0.4.0

func NewCopyCommand() *CopyCommand

func (*CopyCommand) Execute added in v0.4.0

func (c *CopyCommand) Execute(_ *cobra.Command, _ []string) error

type CreateCommand added in v0.3.0

type CreateCommand struct {
	Command *cobra.Command

	Template   string
	BaseBranch string // TODO: Make configurable.
	// contains filtered or unexported fields
}

func NewCreateCommand added in v0.3.0

func NewCreateCommand() *CreateCommand

func (*CreateCommand) Execute added in v0.3.0

func (c *CreateCommand) Execute(cmd *cobra.Command, args []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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