Documentation
¶
Index ¶
- func Execute() error
- func SetVersionInfo(version, buildDate, gitCommit string)
- type BranchSafetyChecker
- func (bsc *BranchSafetyChecker) CheckBranchSafety(branchCheck, force bool) (bool, error)
- func (bsc *BranchSafetyChecker) FormatBranchWarning(currentBranch string) string
- func (bsc *BranchSafetyChecker) GetCurrentBranch() (string, error)
- func (bsc *BranchSafetyChecker) IsProtectedBranch(branch string) bool
- type MigrationWithContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetVersionInfo ¶
func SetVersionInfo(version, buildDate, gitCommit string)
SetVersionInfo updates version information (called from main package)
Types ¶
type BranchSafetyChecker ¶
type BranchSafetyChecker struct {
// contains filtered or unexported fields
}
BranchSafetyChecker checks if it's safe to squash on the current branch
func NewBranchSafetyChecker ¶
func NewBranchSafetyChecker() *BranchSafetyChecker
NewBranchSafetyChecker creates a new branch safety checker
func (*BranchSafetyChecker) CheckBranchSafety ¶
func (bsc *BranchSafetyChecker) CheckBranchSafety(branchCheck, force bool) (bool, error)
CheckBranchSafety checks if it's safe to squash and prompts user if needed Returns true if safe to proceed, false otherwise
func (*BranchSafetyChecker) FormatBranchWarning ¶
func (bsc *BranchSafetyChecker) FormatBranchWarning(currentBranch string) string
FormatBranchWarning formats a warning message about branch safety
func (*BranchSafetyChecker) GetCurrentBranch ¶
func (bsc *BranchSafetyChecker) GetCurrentBranch() (string, error)
GetCurrentBranch gets the current git branch name
func (*BranchSafetyChecker) IsProtectedBranch ¶
func (bsc *BranchSafetyChecker) IsProtectedBranch(branch string) bool
IsProtectedBranch checks if the branch is a protected branch
Click to show internal directories.
Click to hide internal directories.