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 "fmt" | 9 "fmt" |
10 "io" | 10 "io" |
11 "io/ioutil" | 11 "io/ioutil" |
12 "log" | 12 "log" |
13 "os" | 13 "os" |
14 | 14 |
15 "github.com/luci/luci-go/client/internal/common" | 15 "github.com/luci/luci-go/client/internal/common" |
16 "github.com/luci/luci-go/client/internal/lhttp" | |
17 "github.com/luci/luci-go/client/internal/tracer" | 16 "github.com/luci/luci-go/client/internal/tracer" |
18 "github.com/luci/luci-go/client/isolate" | 17 "github.com/luci/luci-go/client/isolate" |
| 18 "github.com/luci/luci-go/common/lhttp" |
19 "github.com/maruel/subcommands" | 19 "github.com/maruel/subcommands" |
20 ) | 20 ) |
21 | 21 |
22 type commonFlags struct { | 22 type commonFlags struct { |
23 quiet bool | 23 quiet bool |
24 verbose bool | 24 verbose bool |
25 tracePath string | 25 tracePath string |
26 traceFile io.Closer | 26 traceFile io.Closer |
27 } | 27 } |
28 | 28 |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 | 143 |
144 if flags&RequireIsolateFile != 0 && c.Isolate == "" { | 144 if flags&RequireIsolateFile != 0 && c.Isolate == "" { |
145 return errors.New("-isolate must be specified") | 145 return errors.New("-isolate must be specified") |
146 } | 146 } |
147 if flags&RequireIsolatedFile != 0 && c.Isolated == "" { | 147 if flags&RequireIsolatedFile != 0 && c.Isolated == "" { |
148 return errors.New("-isolated must be specified") | 148 return errors.New("-isolated must be specified") |
149 } | 149 } |
150 | 150 |
151 return nil | 151 return nil |
152 } | 152 } |
OLD | NEW |