From 0c28de694ae3d76536da1fab4d3c69a233c8028a Mon Sep 17 00:00:00 2001 From: Daisuke Taniwaki Date: Mon, 15 Jul 2019 11:10:28 +0900 Subject: [PATCH] Add --no-color flag to logs --- cmd/argo/commands/logs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/argo/commands/logs.go b/cmd/argo/commands/logs.go index 0ba0dfa1d979..709bbe152fb6 100644 --- a/cmd/argo/commands/logs.go +++ b/cmd/argo/commands/logs.go @@ -86,6 +86,7 @@ func NewLogsCommand() *cobra.Command { command.Flags().StringVar(&sinceTime, "since-time", "", "Only return logs after a specific date (RFC3339). Defaults to all logs. Only one of since-time / since may be used.") command.Flags().Int64Var(&tail, "tail", -1, "Lines of recent log file to display. Defaults to -1 with no selector, showing all log lines otherwise 10, if a selector is provided.") command.Flags().BoolVar(&printer.timestamps, "timestamps", false, "Include timestamps on each line in the log output") + command.Flags().BoolVar(&noColor, "no-color", false, "Disable colorized output") return command }