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

Side by Side Diff: grpc/cmd/rpc/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 | « deploytool/cmd/luci_deploy/main.go ('k') | logdog/client/cli/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 2016 The LUCI Authors. All rights reserved. 1 // Copyright 2016 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 main 5 package main
6 6
7 import ( 7 import (
8 "fmt" 8 "fmt"
9 "os" 9 "os"
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 var application = &cli.Application{ 113 var application = &cli.Application{
114 Name: "rpc", 114 Name: "rpc",
115 Title: "Remote Procedure Call CLI", 115 Title: "Remote Procedure Call CLI",
116 Context: func(ctx context.Context) context.Context { 116 Context: func(ctx context.Context) context.Context {
117 return logCfg.Use(ctx) 117 return logCfg.Use(ctx)
118 }, 118 },
119 Commands: []*subcommands.Command{ 119 Commands: []*subcommands.Command{
120 cmdCall, 120 cmdCall,
121 cmdShow, 121 cmdShow,
122 cmdFmt, 122 cmdFmt,
123 » » authcli.SubcommandLogin(auth.Options{}, "login"), 123 » » authcli.SubcommandLogin(auth.Options{}, "login", false),
124 » » authcli.SubcommandLogout(auth.Options{}, "logout"), 124 » » authcli.SubcommandLogout(auth.Options{}, "logout", false),
125 subcommands.CmdHelp, 125 subcommands.CmdHelp,
126 }, 126 },
127 } 127 }
128 128
129 func main() { 129 func main() {
130 os.Exit(subcommands.Run(application, os.Args[1:])) 130 os.Exit(subcommands.Run(application, os.Args[1:]))
131 } 131 }
OLDNEW
« no previous file with comments | « deploytool/cmd/luci_deploy/main.go ('k') | logdog/client/cli/main.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698