Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/cli/createMsg.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func CreateCommitMsg () {
os.Exit(1)
}

spinnerGenerating.Success("Commit message generated successfully!")
spinnerGenerating.Success("Commit message generated successfully!")

pterm.Println()

Expand All @@ -161,9 +161,9 @@ func CreateCommitMsg () {
// Copy to clipboard
err = clipboard.WriteAll(commitMsg)
if err != nil {
pterm.Warning.Printf("⚠️ Could not copy to clipboard: %v\n", err)
pterm.Warning.Printf("Could not copy to clipboard: %v\n", err)
} else {
pterm.Success.Println("📋 Commit message copied to clipboard!")
pterm.Success.Println("Commit message copied to clipboard!")
}

pterm.Println()
Expand Down
12 changes: 6 additions & 6 deletions internal/display/display.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ type FileStatistics struct {

// ShowFileStatistics displays file statistics with colored output
func ShowFileStatistics(stats *FileStatistics) {
pterm.DefaultSection.Println("📊 Changes Summary")
pterm.DefaultSection.Println("Changes Summary")

// Create bullet list items
bulletItems := []pterm.BulletListItem{}

if len(stats.StagedFiles) > 0 {
bulletItems = append(bulletItems, pterm.BulletListItem{
Level: 0,
Text: pterm.Green(fmt.Sprintf("Staged files: %d", len(stats.StagedFiles))),
Text: pterm.Green(fmt.Sprintf("Staged files: %d", len(stats.StagedFiles))),
TextStyle: pterm.NewStyle(pterm.FgGreen),
BulletStyle: pterm.NewStyle(pterm.FgGreen),
})
Expand All @@ -49,7 +49,7 @@ func ShowFileStatistics(stats *FileStatistics) {
if len(stats.UnstagedFiles) > 0 {
bulletItems = append(bulletItems, pterm.BulletListItem{
Level: 0,
Text: pterm.Yellow(fmt.Sprintf("⚠️ Unstaged files: %d", len(stats.UnstagedFiles))),
Text: pterm.Yellow(fmt.Sprintf("Unstaged files: %d", len(stats.UnstagedFiles))),
TextStyle: pterm.NewStyle(pterm.FgYellow),
BulletStyle: pterm.NewStyle(pterm.FgYellow),
})
Expand All @@ -72,7 +72,7 @@ func ShowFileStatistics(stats *FileStatistics) {
if len(stats.UntrackedFiles) > 0 {
bulletItems = append(bulletItems, pterm.BulletListItem{
Level: 0,
Text: pterm.Cyan(fmt.Sprintf("📝 Untracked files: %d", len(stats.UntrackedFiles))),
Text: pterm.Cyan(fmt.Sprintf("Untracked files: %d", len(stats.UntrackedFiles))),
TextStyle: pterm.NewStyle(pterm.FgCyan),
BulletStyle: pterm.NewStyle(pterm.FgCyan),
})
Expand All @@ -97,7 +97,7 @@ func ShowFileStatistics(stats *FileStatistics) {

// ShowCommitMessage displays the commit message in a styled panel
func ShowCommitMessage(message string) {
pterm.DefaultSection.Println("📝 Generated Commit Message")
pterm.DefaultSection.Println("Generated Commit Message")

// Create a panel with the commit message
panel := pterm.DefaultBox.
Expand All @@ -116,7 +116,7 @@ func ShowCommitMessage(message string) {

// ShowChangesPreview displays a preview of changes with line statistics
func ShowChangesPreview(stats *FileStatistics) {
pterm.DefaultSection.Println("🔍 Changes Preview")
pterm.DefaultSection.Println("Changes Preview")

// Create info boxes
if stats.LinesAdded > 0 || stats.LinesDeleted > 0 {
Expand Down
Loading