Skip to content

Commit

Permalink
chore: Log tweaks (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzduchardt authored Dec 29, 2023
1 parent c2c0baa commit ce25793
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func newPluginCmd(plugin myks.Plugin) *cobra.Command {
}

if err := g.ExecPlugin(asyncLevel, plugin, pluginArgs); err != nil {
log.Fatal().Err(err).Msg("Unable to render applications")
log.Fatal().Err(err).Msg("Plugin did not run successfully")
return err
}

Expand Down
4 changes: 2 additions & 2 deletions internal/myks/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ func runCmd(name string, stdin io.Reader, args []string, logFn func(name string,
func msgRunCmd(purpose string, cmd string, args []string) string {
msg := cmd + " " + strings.Join(reductSecrets(args), " ")
if purpose == "" {
return "Running \u001B[34m" + cmd + "\u001B[0m\n\u001B[37m" + msg + "\u001B[0m"
return "Ran \u001B[34m" + cmd + "\u001B[0m\n\u001B[37m" + msg + "\u001B[0m"
} else {
return "Running \u001B[34m" + cmd + "\u001B[0m to: \u001B[3m" + purpose + "\u001B[0m\n\u001B[37m" + msg + "\u001B[0m"
return "Ran \u001B[34m" + cmd + "\u001B[0m to: \u001B[3m" + purpose + "\u001B[0m\n\u001B[37m" + msg + "\u001B[0m"
}
}

Expand Down

0 comments on commit ce25793

Please sign in to comment.