Enhance pmg outputs by adding colors and removing markdown notions

This commit is contained in:
Sahilb315
2025-05-04 23:47:25 +05:30
parent 53afbaf2ce
commit e48ba6ba3d
5 changed files with 44 additions and 5 deletions
+10
View File
@@ -76,3 +76,13 @@ func IsInstallCommand(pkgManager, cmd string) bool {
}
return false
}
func removeMarkdown(text string) string {
// Remove bold asterisks
text = strings.ReplaceAll(text, "**", "")
// Remove italic asterisks
text = strings.ReplaceAll(text, "*", "")
// Remove backticks
text = strings.ReplaceAll(text, "`", "")
return text
}