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

Side by Side Diff: client/cmd/isolate/common.go

Issue 1159563002: Move retry and lhttp packages from client/internal to common/. (Closed) Base URL: git@github.com:luci/luci-go@master
Patch Set: move-retry-http Created 5 years, 7 months 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 | « no previous file | client/cmd/isolated/common.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 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
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 }
OLDNEW
« no previous file with comments | « no previous file | client/cmd/isolated/common.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698