| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 package main | 5 package main | 
| 6 | 6 | 
| 7 import ( | 7 import ( | 
| 8         "errors" | 8         "errors" | 
| 9         "io" | 9         "io" | 
| 10         "io/ioutil" | 10         "io/ioutil" | 
| 11         "log" | 11         "log" | 
| 12         "os" | 12         "os" | 
| 13 | 13 | 
| 14         "github.com/luci/luci-go/client/internal/lhttp" |  | 
| 15         "github.com/luci/luci-go/client/internal/tracer" | 14         "github.com/luci/luci-go/client/internal/tracer" | 
|  | 15         "github.com/luci/luci-go/common/lhttp" | 
| 16         "github.com/maruel/subcommands" | 16         "github.com/maruel/subcommands" | 
| 17 ) | 17 ) | 
| 18 | 18 | 
| 19 type commonFlags struct { | 19 type commonFlags struct { | 
| 20         quiet     bool | 20         quiet     bool | 
| 21         verbose   bool | 21         verbose   bool | 
| 22         tracePath string | 22         tracePath string | 
| 23         traceFile io.Closer | 23         traceFile io.Closer | 
| 24 } | 24 } | 
| 25 | 25 | 
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 79         if s, err := lhttp.URLToHTTPS(c.serverURL); err != nil { | 79         if s, err := lhttp.URLToHTTPS(c.serverURL); err != nil { | 
| 80                 return err | 80                 return err | 
| 81         } else { | 81         } else { | 
| 82                 c.serverURL = s | 82                 c.serverURL = s | 
| 83         } | 83         } | 
| 84         if c.namespace == "" { | 84         if c.namespace == "" { | 
| 85                 return errors.New("-namespace must be specified.") | 85                 return errors.New("-namespace must be specified.") | 
| 86         } | 86         } | 
| 87         return nil | 87         return nil | 
| 88 } | 88 } | 
| OLD | NEW | 
|---|