refactor: convert TerminalColors to global var and split markdown utils

This commit is contained in:
Sahilb315
2025-05-05 19:28:13 +05:30
parent 3c803685ee
commit 5b809c7546
4 changed files with 59 additions and 32 deletions
@@ -10,7 +10,6 @@ import (
)
func ConfirmInstallation(maliciousPkgs map[string]string) bool {
colors := NewTerminalColors()
fmt.Printf("\n%s\n", colors.Red("⚠️ WARNING: %d potentially malicious packages detected!", len(maliciousPkgs)))
fmt.Println(colors.Yellow("The following packages have been flagged:"))