Documentation
¶
Index ¶
- Variables
- func ConfirmAction() (string, error)
- func ConfirmCreateDir(path string) (bool, error)
- func ConfirmPrune(repos []string) (bool, error)
- func ConfirmSync(toClone int, toRemove int) (bool, error)
- func CopyToClipboard(text string) bool
- func Debug(msg string, args ...interface{})
- func Error(msg string, args ...interface{})
- func Info(msg string, args ...interface{})
- func IsTTY() bool
- func PrintDiff(sourceName string, entries []DiffEntry)
- func PrintSummary(cloned, pruned, skipped int)
- func PrintUnifiedDiff(diffs []SourceDiff)
- func SetDebug(enabled bool)
- func Warn(msg string, args ...interface{})
- type DiffEntry
- type DiffStatus
- type Progress
- type SourceDiff
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Styles for diff display AddedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#04B575")) RemovedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#FF5555")) UnchangedStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#ABABAB")) HeaderStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("#7D56F4")) SourceStyle = lipgloss.NewStyle().Bold(true).Foreground(lipgloss.Color("#04B575")) )
View Source
var Logger *log.Logger
Functions ¶
func ConfirmAction ¶
func ConfirmCreateDir ¶
func ConfirmPrune ¶
func CopyToClipboard ¶
CopyToClipboard copies text to the system clipboard. It tries the clipboard package first, then falls back to OSC 52 escape sequences.
func PrintSummary ¶
func PrintSummary(cloned, pruned, skipped int)
func PrintUnifiedDiff ¶
func PrintUnifiedDiff(diffs []SourceDiff)
PrintUnifiedDiff prints a unified diff-style output comparing local vs config
Types ¶
type DiffEntry ¶
type DiffEntry struct {
Name string
Status DiffStatus
}
type DiffStatus ¶
type DiffStatus int
const ( StatusAdded DiffStatus = iota StatusRemoved StatusUnchanged )
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
Progress tracks cloning progress with an animated spinner
func NewProgress ¶
NewProgress creates a new progress tracker
type SourceDiff ¶
SourceDiff represents the diff for a single source
Click to show internal directories.
Click to hide internal directories.