Skip to content

Commit

Permalink
change -with-time color
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Feb 14, 2021
1 parent 06848a4 commit 28c5d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func main() {
appendOption := flag.Bool("append", false, "Append mode for files")
chunkedLineOption := flag.Int("chunked", 0, "Chuked files from line (e.g output / output_1 / output_2)")
withLineOption := flag.Bool("with-line", false, "With line number (colorize blue)")
withTimeOption := flag.Bool("with-time", false, "With timestamp (colorize blue)")
withTimeOption := flag.Bool("with-time", false, "With timestamp (colorize green)")
prefixOption := flag.String("prefix", "", "Prefix string")
suffixOption := flag.String("suffix", "", "Suffix string")
rmnlOption := flag.Bool("rmnl", false, "Remove newline(\\r\\n)")
Expand Down
2 changes: 1 addition & 1 deletion pkg/gee/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func StringProc(l string, stdLine int, options model.Options) (string, string) {
}

if options.WithTimestamp {
result = au.BrightBlue("["+GetNowTime()+"] ").String() + result
result = au.BrightGreen("["+GetNowTime()+"] ").String() + result
resultPlain = "[" + GetNowTime() + "] " + resultPlain
}

Expand Down

0 comments on commit 28c5d03

Please sign in to comment.