Clean out urfave/cli.v2.a, wrap long line
This commit is contained in:
parent
76d44cff06
commit
796679fd8b
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user