🔨 Replace color utils with 'github.com/fatih/color'

This commit is contained in:
2025-03-02 20:18:11 +04:00
parent a01bf19986
commit 4cb0540824
6 changed files with 26 additions and 52 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/aykhans/dodo/config"
. "github.com/aykhans/dodo/types"
"github.com/aykhans/dodo/utils"
"github.com/fatih/color"
)
const usageText = `Usage:
@@ -114,7 +114,7 @@ func CLIConfigReader() (*config.CLIConfig, error) {
case "timeout", "t":
var maxUint32 uint = 4294967295
if timeout > maxUint32 {
utils.PrintfC(utils.Colors.Yellow, "timeout value is too large, setting to %d\n", maxUint32)
color.Yellow("timeout value is too large, setting to %d", maxUint32)
timeout = maxUint32
}
cliConfig.Timeout = uint32(timeout)