| OLD | NEW |
| 1 // Copyright 2015 The LUCI Authors. All rights reserved. | 1 // Copyright 2015 The LUCI Authors. All rights reserved. |
| 2 // Use of this source code is governed under the Apache License, Version 2.0 | 2 // Use of this source code is governed under the Apache License, Version 2.0 |
| 3 // that can be found in the LICENSE file. | 3 // that can be found in the LICENSE file. |
| 4 | 4 |
| 5 package cli | 5 package cli |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "flag" | 8 "flag" |
| 9 "fmt" | 9 "fmt" |
| 10 "os" | 10 "os" |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 Name: "LogDog cat", | 119 Name: "LogDog cat", |
| 120 Title: "LogDog log data access CLI", | 120 Title: "LogDog log data access CLI", |
| 121 Context: func(context.Context) context.Context { return
ctx }, | 121 Context: func(context.Context) context.Context { return
ctx }, |
| 122 | 122 |
| 123 Commands: []*subcommands.Command{ | 123 Commands: []*subcommands.Command{ |
| 124 subcommands.CmdHelp, | 124 subcommands.CmdHelp, |
| 125 newCatCommand(), | 125 newCatCommand(), |
| 126 newQueryCommand(), | 126 newQueryCommand(), |
| 127 newListCommand(), | 127 newListCommand(), |
| 128 newLatestCommand(), | 128 newLatestCommand(), |
| 129 » » » » authcli.SubcommandLogin(authOptions, "auth-login
"), | 129 » » » » authcli.SubcommandLogin(authOptions, "auth-login
", false), |
| 130 » » » » authcli.SubcommandLogout(authOptions, "auth-logo
ut"), | 130 » » » » authcli.SubcommandLogout(authOptions, "auth-logo
ut", false), |
| 131 » » » » authcli.SubcommandInfo(authOptions, "auth-info")
, | 131 » » » » authcli.SubcommandInfo(authOptions, "auth-info",
false), |
| 132 }, | 132 }, |
| 133 }, | 133 }, |
| 134 p: params, | 134 p: params, |
| 135 } | 135 } |
| 136 loggingConfig := log.Config{ | 136 loggingConfig := log.Config{ |
| 137 Level: log.Level(log.Info), | 137 Level: log.Level(log.Info), |
| 138 } | 138 } |
| 139 | 139 |
| 140 flags := &flag.FlagSet{} | 140 flags := &flag.FlagSet{} |
| 141 a.addToFlagSet(ctx, flags) | 141 a.addToFlagSet(ctx, flags) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 C: httpClient, | 196 C: httpClient, |
| 197 Host: a.p.Host, | 197 Host: a.p.Host, |
| 198 Options: prpc.DefaultOptions(), | 198 Options: prpc.DefaultOptions(), |
| 199 } | 199 } |
| 200 prpcClient.Options.Insecure = a.insecure | 200 prpcClient.Options.Insecure = a.insecure |
| 201 | 201 |
| 202 a.coord = coordinator.NewClient(prpcClient) | 202 a.coord = coordinator.NewClient(prpcClient) |
| 203 a.Context = ctx | 203 a.Context = ctx |
| 204 return subcommands.Run(&a, flags.Args()) | 204 return subcommands.Run(&a, flags.Args()) |
| 205 } | 205 } |
| OLD | NEW |