cmd: fix CLI package deprecation warnings
This commit is contained in:
1 parent
63d1d145e2
commit
90e07b19ab
8 files changed
+55
-27
No files matched your search
+2
-1
@@ -104,7 +104,7 @@ func init() {
|
||||
app.Action = run
|
||||
}
|
||||
|
||||
func run(ctx *cli.Context) {
|
||||
func run(ctx *cli.Context) error {
|
||||
glog.SetToStderr(true)
|
||||
glog.SetV(ctx.GlobalInt(VerbosityFlag.Name))
|
||||
|
||||
@@ -154,6 +154,7 @@ num gc: %d
|
||||
fmt.Printf(" error: %v", e)
|
||||
}
|
||||
fmt.Println()
|
||||
return nil
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in new issue
Block a user