Documentation
¶
Index ¶
- func CLIMenu(config *Config) *cobra.Command
- func CheckGitAndHooksDir() error
- func ExecuteCommand(command string, args ...string) (string, error)
- func ExecuteGitCommand(args ...string) (string, error)
- func GetCurrentBranchName() (string, error)
- func GetGlobalBinPath() (string, error)
- func SetCommitMsgHook(config *Config) error
- func SetGitHooks(config *Config) error
- func SetPostCheckoutHook(config *Config) error
- type Config
- type JiraManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGitAndHooksDir ¶
func CheckGitAndHooksDir() error
func ExecuteGitCommand ¶
Function to execute git commands
func GetCurrentBranchName ¶
func GetGlobalBinPath ¶
func SetCommitMsgHook ¶ added in v0.2.0
func SetGitHooks ¶ added in v0.2.0
fmt.Println("Git hook script set successfully.") return nil }
configures all necessary Git hooks
func SetPostCheckoutHook ¶ added in v0.2.0
Types ¶
type Config ¶
type JiraManager ¶
type JiraManager struct {
Config *Config
}
JiraManager handles operations related to JIRA issues.
func NewJiraManager ¶
func NewJiraManager(config *Config) *JiraManager
NewJiraManager creates a new instance of JiraManager with the provided configuration.
func (*JiraManager) ExtractIssueKeyFromBranchName ¶
func (jm *JiraManager) ExtractIssueKeyFromBranchName(branchName string) (string, error)
func (*JiraManager) ValidateJiraKey ¶
func (jm *JiraManager) ValidateJiraKey( input string, ) (string, error)
Click to show internal directories.
Click to hide internal directories.