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

Side by Side Diff: web_page_replay_go/src/wpr.go

Issue 3012343002: Rename github.com/codegangsta/cli to github.com/urfave/cli (Closed)
Patch Set: Created 3 years, 3 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 | « web_page_replay_go/README.md ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 // Program wpr records and replays web traffic. 5 // Program wpr records and replays web traffic.
6 package main 6 package main
7 7
8 import ( 8 import (
9 "crypto/tls" 9 "crypto/tls"
10 "errors" 10 "errors"
11 "fmt" 11 "fmt"
12 "log" 12 "log"
13 "net" 13 "net"
14 "net/http" 14 "net/http"
15 "os" 15 "os"
16 "os/signal" 16 "os/signal"
17 "path/filepath" 17 "path/filepath"
18 "strconv" 18 "strconv"
19 "strings" 19 "strings"
20 "time" 20 "time"
21 21
22 "github.com/catapult-project/catapult/web_page_replay_go/src/webpagerepl ay" 22 "github.com/catapult-project/catapult/web_page_replay_go/src/webpagerepl ay"
23 » "github.com/codegangsta/cli" 23 » "github.com/urfave/cli"
24 "golang.org/x/net/http2" 24 "golang.org/x/net/http2"
25 ) 25 )
26 26
27 const longUsage = ` 27 const longUsage = `
28 %s [installroot|removeroot] [options] 28 %s [installroot|removeroot] [options]
29 %s [record|replay] [options] archive_file 29 %s [record|replay] [options] archive_file
30 30
31 Before: Install a test root CA. 31 Before: Install a test root CA.
32 $ GOPATH=$PWD go run src/wpr.go installroot 32 $ GOPATH=$PWD go run src/wpr.go installroot
33 33
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 app := cli.NewApp() 439 app := cli.NewApp()
440 app.Commands = []cli.Command{record.cmd, replay.cmd, installroot.cmd, re moveroot.cmd, convert.cmd} 440 app.Commands = []cli.Command{record.cmd, replay.cmd, installroot.cmd, re moveroot.cmd, convert.cmd}
441 app.Usage = "Web Page Replay" 441 app.Usage = "Web Page Replay"
442 app.UsageText = fmt.Sprintf(longUsage, progName, progName) 442 app.UsageText = fmt.Sprintf(longUsage, progName, progName)
443 app.HideVersion = true 443 app.HideVersion = true
444 app.Version = "" 444 app.Version = ""
445 app.Writer = os.Stderr 445 app.Writer = os.Stderr
446 app.RunAndExitOnError() 446 app.RunAndExitOnError()
447 } 447 }
OLDNEW
« no previous file with comments | « web_page_replay_go/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698