Documentation
¶
Index ¶
- func Execute() error
- func SetBrandName(name string)
- 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 DetailedHealthStatus
- type HealthStatus
- type MigrationWithContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBrandName ¶
func SetBrandName(name string)
SetBrandName updates the CLI branding (called from main package for different binaries)
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
type DetailedHealthStatus ¶
type DetailedHealthStatus struct {
Status string `json:"status"`
Version string `json:"version"`
Timestamp time.Time `json:"timestamp"`
System struct {
OS string `json:"os"`
Arch string `json:"arch"`
GoVer string `json:"go_version"`
NumCPU int `json:"num_cpu"`
NumGo int `json:"num_goroutines"`
} `json:"system"`
Docker struct {
Available bool `json:"available"`
Reason string `json:"reason,omitempty"`
} `json:"docker"`
}
DetailedHealthStatus represents the detailed health check response