service

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	ConfigRule     config.Rule
	GitService     git.Git
	TemplateValues map[string]string
}

Service a the branch service struct

func New

func New(configRule config.Rule, gitService git.Git, templateValues map[string]string) *Service

New returns a new pointer instance of Service with the given arguments

func (Service) BuildNewName

func (s Service) BuildNewName(branchType string, title string) (string, error)

BuildNewName builds a new name for a branch with the given title argument (can be also an empty string)

func (Service) Checkout

func (s Service) Checkout(branchName string) error

Checkout tries to checkout a new branch with the given name

Jump to

Keyboard shortcuts

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