Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: logdog/client/cli/subcommandList.go

Issue 2715413002: LogDog: CLI can use stream URLs, fix auth. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « logdog/client/cli/subcommandLatest.go ('k') | logdog/client/cli/subcommandQuery.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/cli/subcommandList.go
diff --git a/logdog/client/cli/subcommandList.go b/logdog/client/cli/subcommandList.go
index 7c18edb8c8190fa69af0cdbd2f2d1295108805ce..b43c7ffa93db06cd09c3e8c6854166689dba2f3e 100644
--- a/logdog/client/cli/subcommandList.go
+++ b/logdog/client/cli/subcommandList.go
@@ -11,6 +11,7 @@ import (
"sort"
"strings"
+ "github.com/luci/luci-go/common/errors"
log "github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/common/proto/google"
"github.com/luci/luci-go/logdog/client/coordinator"
@@ -57,6 +58,12 @@ func (cmd *listCommandRun) Run(scApp subcommands.Application, args []string, _ s
bio := bufio.NewWriter(os.Stdout)
defer bio.Flush()
+ coord, err := a.coordinatorClient("")
+ if err != nil {
+ errors.Log(a, errors.Annotate(err).Reason("could not create Coordinator client").Err())
+ return 1
+ }
+
for _, arg := range args {
arg = strings.TrimSpace(arg)
@@ -75,7 +82,7 @@ func (cmd *listCommandRun) Run(scApp subcommands.Application, args []string, _ s
}
}
- err := a.coord.List(a, project, pathBase, cmd.o, func(lr *coordinator.ListResult) bool {
+ err := coord.List(a, project, pathBase, cmd.o, func(lr *coordinator.ListResult) bool {
p := lr.Name
if cmd.o.State {
// Long listing, show full path.
« no previous file with comments | « logdog/client/cli/subcommandLatest.go ('k') | logdog/client/cli/subcommandQuery.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698