update setup install cmd info (#143)

* update setup install cmd info

* update demo

* add doc comment
This commit is contained in:
Sahil Bansal
2026-01-27 21:24:08 +05:30
committed by GitHub
parent be63fdd6ea
commit b332e1d6d4
5 changed files with 15 additions and 5 deletions
+8
View File
@@ -23,3 +23,11 @@ func PrintInfoSection(title string, entries map[string]string) {
fmt.Printf("%-25s: %s\n", Colors.Bold(k), entries[k])
}
}
// PrintSetupInstallCmdInfo prints a success message with the alias & config path, and a restart reminder.
func PrintSetupInstallCmdInfo(rcPath, configPath string) {
fmt.Printf("%s %s\n", Colors.Green("✓"), "PMG aliases installed successfully")
fmt.Printf(" %s\n", Colors.Dim(fmt.Sprintf("Installed to: %s", rcPath)))
fmt.Printf(" %s\n", Colors.Dim(fmt.Sprintf("Config at: %s", configPath)))
fmt.Printf(" %s\n", Colors.Dim("Restart your terminal or source your shell to use the new aliases"))
}