Skip to content

Commit

Permalink
Add --no-color flag to logs (#1479)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtaniwaki authored and jessesuen committed Jul 15, 2019
1 parent 67fc29c commit 42adbf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/argo/commands/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 42adbf3

Please sign in to comment.