| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |