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

Side by Side Diff: logdog/client/cli/main.go

Issue 2503583002: Hide advanced commands from cipd client help. (Closed)
Patch Set: address comments Created 4 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « grpc/cmd/rpc/main.go ('k') | logdog/client/cmd/logdog_butler/main.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « grpc/cmd/rpc/main.go ('k') | logdog/client/cmd/logdog_butler/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698