diff --git a/internal/commands/downcmd/root.go b/internal/commands/downcmd/root.go index 575fdcf..fe6f7cd 100644 --- a/internal/commands/downcmd/root.go +++ b/internal/commands/downcmd/root.go @@ -47,7 +47,7 @@ func runDownCommand(cmd *cobra.Command, args []string) { } utils.ErrorAndExit(err) - utils.Success("Executed command: docker-compose down") + utils.Success(fmt.Sprintf("Executed command: %s", chalk.Cyan.Color("docker-compose down"))) viper.Set(fmt.Sprintf("envs.%s.running", activeEnv.GetName()), false) config.Save("", fmt.Errorf("Failed to set environment %s to %s", chalk.Underline.TextStyle(activeEnv.GetName()), chalk.Underline.TextStyle("not running"))) diff --git a/internal/commands/envcmd/pull.go b/internal/commands/envcmd/pull.go index 5f5ebf0..c65014a 100644 --- a/internal/commands/envcmd/pull.go +++ b/internal/commands/envcmd/pull.go @@ -84,7 +84,7 @@ func runPullCommand(cmd *cobra.Command, args []string) { } utils.ErrorAndExit(err) - utils.Success(fmt.Sprintf("Pulled environment: %s", env.GetName())) + utils.Success(fmt.Sprintf("Pulled environment: %s", chalk.Cyan.Color(env.GetName()))) } // Pull runs git pull in given path and optionally logs output diff --git a/internal/commands/restartcmd/root.go b/internal/commands/restartcmd/root.go index 295d642..9d23611 100644 --- a/internal/commands/restartcmd/root.go +++ b/internal/commands/restartcmd/root.go @@ -65,5 +65,5 @@ func runRestartCommand(cmd *cobra.Command, args []string) { } utils.ErrorAndExit(err) - utils.Success(fmt.Sprintf("Executed command: %s", command)) + utils.Success(fmt.Sprintf("Executed command: %s", chalk.Cyan.Color(command))) } diff --git a/internal/commands/scriptcmd/root.go b/internal/commands/scriptcmd/root.go index 9f1b673..777ce74 100644 --- a/internal/commands/scriptcmd/root.go +++ b/internal/commands/scriptcmd/root.go @@ -78,5 +78,5 @@ func runScriptCommand(cmd *cobra.Command, args []string) { _, err = externalcommand.Execute(command, nil, "") utils.ErrorAndExit(err) - utils.Success(fmt.Sprintf("Executed script: %s", scriptname)) + utils.Success(fmt.Sprintf("Executed script: %s", chalk.Cyan.Color(scriptname))) } diff --git a/internal/commands/upcmd/root.go b/internal/commands/upcmd/root.go index 8494aa2..901bcdc 100644 --- a/internal/commands/upcmd/root.go +++ b/internal/commands/upcmd/root.go @@ -145,7 +145,7 @@ func runUpCommand(cmd *cobra.Command, args []string) { viper.Set(fmt.Sprintf("envs.%s.running", activeEnv.GetName()), true) config.Save("", fmt.Errorf("Failed to set environment %s to %s", chalk.Underline.TextStyle(activeEnv.GetName()), chalk.Underline.TextStyle("running"))) - utils.Success("Executed command: docker-compose up") + utils.Success(fmt.Sprintf("Executed command: %s", chalk.Cyan.Color("docker-compose up"))) } func pull(activeEnv config.Env) { @@ -182,7 +182,7 @@ func pull(activeEnv config.Env) { fmt.Println() // Add empty line for better readability } else { - utils.Success(fmt.Sprintf("Pulled environment: %s", activeEnv.GetName())) + utils.Success(fmt.Sprintf("Pulled environment: %s", chalk.Cyan.Color(activeEnv.GetName()))) } } } diff --git a/internal/utils/utils.go b/internal/utils/utils.go index 2ef6561..629b18c 100644 --- a/internal/utils/utils.go +++ b/internal/utils/utils.go @@ -16,7 +16,7 @@ func Abort() { // Success prints green colored text to std out func Success(text string) { - fmt.Println(chalk.Green.Color(text)) + fmt.Println(fmt.Sprintf("%s %s", chalk.Green.Color("✔"), text)) } // Warn prints yellow colored text to std out