feat: Add support for setup-info command (#108)

* feat: Add support for setup-info command

* fix: Code review fixes

* fix: Add event log info
This commit is contained in:
Abhisek Datta
2026-01-11 19:25:13 +05:30
committed by GitHub
parent 11481c3f4c
commit c0122898ca
9 changed files with 228 additions and 6 deletions
+25
View File
@@ -0,0 +1,25 @@
package ui
import (
"fmt"
"sort"
)
// PrintInfoSection prints a formatted block of key-value information.
func PrintInfoSection(title string, entries map[string]string) {
fmt.Println()
fmt.Println(Colors.Cyan(title))
fmt.Println(Colors.Normal("--------------------"))
// Sort keys for consistent output
keys := make([]string, 0, len(entries))
for k := range entries {
keys = append(keys, k)
}
sort.Strings(keys)
for _, k := range keys {
fmt.Printf("%-25s: %s\n", Colors.Bold(k), entries[k])
}
}