From 1d93246af866974ba634caa23e42477381331f3e Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 21 Nov 2020 23:52:29 -0500 Subject: [PATCH] chore: formatting --- plugins/logs/src/commands/commands.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/logs/src/commands/commands.go b/plugins/logs/src/commands/commands.go index a154ea3b3..036872295 100644 --- a/plugins/logs/src/commands/commands.go +++ b/plugins/logs/src/commands/commands.go @@ -32,17 +32,17 @@ func main() { switch cmd { case "logs": args := flag.NewFlagSet("logs", flag.ExitOnError) - help := args.Bool("h", false, "-h: print help for the command") var num int64 + var ps string + var tail bool + var quiet bool + help := args.Bool("h", false, "-h: print help for the command") args.Int64Var(&num, "n", 0, "-n: the number of lines to display") args.Int64Var(&num, "num", 0, "--num: the number of lines to display") - var ps string args.StringVar(&ps, "p", "", "-p: only display logs from the given process") args.StringVar(&ps, "ps", "", "--p: only display logs from the given process") - var tail bool args.BoolVar(&tail, "t", true, "-t: continually stream logs") args.BoolVar(&tail, "tail", true, "--tail: continually stream logs") - var quiet bool args.BoolVar(&quiet, "q", true, "-q: display raw logs without colors, time and names") args.BoolVar(&quiet, "quiet", true, "--quiet: display raw logs without colors, time and names") args.Parse(flag.Args()[1:])