From 796679fd8ba6b7d7198d97dfa708ead4492aa3bb Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Wed, 22 Jun 2016 16:57:18 -0400 Subject: [PATCH] Clean out urfave/cli.v2.a, wrap long line --- .travis.yml | 1 + appveyor.yml | 1 + cli-v1-to-v2 | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8563b8d..08c0563 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,6 +38,7 @@ before_script: - go get github.com/urfave/gfmxr/... - mkdir -p ${GOPATH%%:*}/src/gopkg.in/urfave - rm -rvf ${GOPATH%%:*}/src/gopkg.in/urfave/cli.v2 +- rm -rvf ${GOPATH%%:*}/pkg/*/gopkg.in/urfave/cli.v2.a - ln -sv ${TRAVIS_BUILD_DIR} ${GOPATH%%:*}/src/gopkg.in/urfave/cli.v2 script: diff --git a/appveyor.yml b/appveyor.yml index 2abe1b4..2a51748 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -20,6 +20,7 @@ install: - go env - go get github.com/urfave/gfmxr/... - rmdir c:\gopath\src\gopkg.in\urfave\cli.v2 /s /q +- rmdir c:\gopath\pkg /s /q - git clone . c:\gopath\src\gopkg.in\urfave\cli.v2 - go get -v -t ./... - if not exist node_modules\.bin\markdown-toc npm install markdown-toc diff --git a/cli-v1-to-v2 b/cli-v1-to-v2 index 48085e9..2c83720 100755 --- a/cli-v1-to-v2 +++ b/cli-v1-to-v2 @@ -294,7 +294,9 @@ def _context_parent(source): @_migrator def _app_init(source): - return re.sub('cli\\.NewApp\\(\\)', '(&cli.App{})', source, flags=re.UNICODE) + return re.sub( + 'cli\\.NewApp\\(\\)', '(&cli.App{})', source, flags=re.UNICODE + ) def test_migrators():