Clean out urfave/cli.v2.a, wrap long line

This commit is contained in:
Dan Buch 2016-06-22 16:57:18 -04:00
parent 76d44cff06
commit 796679fd8b
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC
3 changed files with 5 additions and 1 deletions

View File

@ -38,6 +38,7 @@ before_script:
- go get github.com/urfave/gfmxr/... - go get github.com/urfave/gfmxr/...
- mkdir -p ${GOPATH%%:*}/src/gopkg.in/urfave - mkdir -p ${GOPATH%%:*}/src/gopkg.in/urfave
- rm -rvf ${GOPATH%%:*}/src/gopkg.in/urfave/cli.v2 - 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 - ln -sv ${TRAVIS_BUILD_DIR} ${GOPATH%%:*}/src/gopkg.in/urfave/cli.v2
script: script:

View File

@ -20,6 +20,7 @@ install:
- go env - go env
- go get github.com/urfave/gfmxr/... - go get github.com/urfave/gfmxr/...
- rmdir c:\gopath\src\gopkg.in\urfave\cli.v2 /s /q - 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 - git clone . c:\gopath\src\gopkg.in\urfave\cli.v2
- go get -v -t ./... - go get -v -t ./...
- if not exist node_modules\.bin\markdown-toc npm install markdown-toc - if not exist node_modules\.bin\markdown-toc npm install markdown-toc

View File

@ -294,7 +294,9 @@ def _context_parent(source):
@_migrator @_migrator
def _app_init(source): 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(): def test_migrators():