main
Madhur batra 4 years ago
commit fc1d3eb8da

@ -11,7 +11,6 @@ on:
- v1 - v1
jobs: jobs:
test: test:
strategy: strategy:
matrix: matrix:
@ -27,10 +26,10 @@ jobs:
- name: Set GOPATH, PATH and ENV - name: Set GOPATH, PATH and ENV
run: | run: |
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)" echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV
echo "::set-env name=GO111MODULE::on" echo "GO111MODULE=on" >> $GITHUB_ENV
echo "::set-env name=GOPROXY::https://proxy.golang.org" echo "GOPROXY=https://proxy.golang.org" >> $GITHUB_ENV
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin" echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH
shell: bash shell: bash
- name: Checkout Code - name: Checkout Code
@ -74,10 +73,10 @@ jobs:
- name: Set GOPATH, PATH and ENV - name: Set GOPATH, PATH and ENV
run: | run: |
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)" echo "GOPATH=$(dirname $GITHUB_WORKSPACE)" >> $GITHUB_ENV
echo "::set-env name=GO111MODULE::on" echo "GO111MODULE=on" >> $GITHUB_ENV
echo "::set-env name=GOPROXY::https://proxy.golang.org" echo "GOPROXY=https://proxy.golang.org" >> $GITHUB_ENV
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin" echo "$(dirname $GITHUB_WORKSPACE)/bin" >> $GITHUB_PATH
shell: bash shell: bash
- name: Checkout Code - name: Checkout Code

@ -328,7 +328,7 @@ func (a *App) RunContext(ctx context.Context, arguments []string) (err error) {
// RunAndExitOnError calls .Run() and exits non-zero if an error was returned // RunAndExitOnError calls .Run() and exits non-zero if an error was returned
// //
// Deprecated: instead you should return an error that fulfills cli.ExitCoder // Deprecated: instead you should return an error that fulfills cli.ExitCoder
// to cli.App.Run. This will cause the application to exit with the given eror // to cli.App.Run. This will cause the application to exit with the given error
// code in the cli.ExitCoder // code in the cli.ExitCoder
func (a *App) RunAndExitOnError() { func (a *App) RunAndExitOnError() {
if err := a.Run(os.Args); err != nil { if err := a.Run(os.Args); err != nil {

@ -45,7 +45,7 @@ cli v2 manual
There are a small set of breaking changes between v1 and v2. There are a small set of breaking changes between v1 and v2.
Converting is relatively straightforward and typically takes less than Converting is relatively straightforward and typically takes less than
an hour. Specific steps are included in an hour. Specific steps are included in
[Migration Guide: v1 to v2](../migrate-v1-to-v2.md). [Migration Guide: v1 to v2](../migrate-v1-to-v2.md). Also see the [pkg.go.dev docs](https://pkg.go.dev/github.com/urfave/cli/v2) for v2 API documentation.
## Getting Started ## Getting Started

Loading…
Cancel
Save