mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
Enhance pmg outputs by adding colors and removing markdown notions
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/fatih/color"
|
||||
"github.com/safedep/dry/log"
|
||||
"github.com/safedep/pmg/internal/ui"
|
||||
"github.com/safedep/pmg/pkg/analyser"
|
||||
@@ -133,7 +134,8 @@ func (pmw *PackageManagerWrapper) analyzeDependencies(ctx context.Context, deps
|
||||
log.Infof("Installation canceled due to security concerns")
|
||||
return fmt.Errorf("installation canceled")
|
||||
}
|
||||
log.Warnf("Continuing installation despite security warnings...")
|
||||
yellow := color.New(color.FgYellow, color.Bold).SprintfFunc()
|
||||
log.Warnf(yellow("Continuing installation despite security warnings..."))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user