fix: Fail when command exec workflow fails

This commit is contained in:
abhisek
2025-05-15 14:00:18 +05:30
parent c138880593
commit a399e2f59c
4 changed files with 35 additions and 6 deletions
+7
View File
@@ -101,6 +101,13 @@ func GetConfirmationOnMalware(malwarePackages []*analyzer.PackageVersionAnalysis
return false, nil
}
func Fatalf(msg string, args ...interface{}) {
ClearStatus()
fmt.Println(Colors.Red(fmt.Sprintf(msg, args...)))
os.Exit(1)
}
// Format the string to be maximum maxWidth. Use newlines to wrap the text.
func termWidthFormatText(text string, maxWidth int) string {
words := strings.Split(text, " ")