Skip to content

Commit

Permalink
Merge pull request #836 from urfave/flag-type-generation-golang
Browse files Browse the repository at this point in the history
Flag Generation in the CLI
  • Loading branch information
asahasrabuddhe committed Aug 7, 2019
2 parents 93392d1 + e2de8c7 commit b6f7dd9
Show file tree
Hide file tree
Showing 22 changed files with 929 additions and 487 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,2 +1,3 @@
*.coverprofile
node_modules/
vendor
35 changes: 21 additions & 14 deletions .travis.yml
Expand Up @@ -2,26 +2,33 @@ language: go
sudo: false
dist: trusty
osx_image: xcode8.3
go: 1.11.x
go:
- 1.11.x
- 1.12.x

os:
- linux
- osx
- linux
- osx

cache:
directories:
- node_modules
- node_modules

before_script:
- go get github.com/urfave/gfmrun/... || true
- go get golang.org/x/tools/cmd/goimports
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
npm install markdown-toc ;
fi
- go get github.com/shurcooL/vfsgen || true
- go get github.com/shurcooL/httpfs/union || true
- go get github.com/urfave/gfmrun/... || true
- go get golang.org/x/tools/cmd/goimports
- if [ ! -f node_modules/.bin/markdown-toc ] ; then
npm install markdown-toc ;
fi

script:
- ./runtests gen
- ./runtests vet
- ./runtests test
- ./runtests gfmrun
- ./runtests toc
- go run build.go generate
- go run build.go vet
- go run build.go test
- go run build.go gfmrun
- go run build.go toc

after_success:
- bash <(curl -s https://codecov.io/bash)
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -3,6 +3,7 @@ cli

[![Build Status](https://travis-ci.org/urfave/cli.svg?branch=master)](https://travis-ci.org/urfave/cli)
[![Windows Build Status](https://ci.appveyor.com/api/projects/status/rtgk5xufi932pb2v?svg=true)](https://ci.appveyor.com/project/urfave/cli)

[![GoDoc](https://godoc.org/github.com/urfave/cli?status.svg)](https://godoc.org/github.com/urfave/cli)
[![codebeat](https://codebeat.co/badges/0a8f30aa-f975-404b-b878-5fab3ae1cc5f)](https://codebeat.co/projects/github-com-urfave-cli)
[![Go Report Card](https://goreportcard.com/badge/urfave/cli)](https://goreportcard.com/report/urfave/cli)
Expand Down Expand Up @@ -888,7 +889,9 @@ Calling `App.Run` will not automatically call `os.Exit`, which means that by
default the exit code will "fall through" to being `0`. An explicit exit code
may be set by returning a non-nil error that fulfills `cli.ExitCoder`, *or* a
`cli.MultiError` that includes an error that fulfills `cli.ExitCoder`, e.g.:

<!-- {
"error": "Ginger croutons are not in the soup"
} -->
``` go
package main

Expand Down
3 changes: 0 additions & 3 deletions altsrc/altsrc.go

This file was deleted.

0 comments on commit b6f7dd9

Please sign in to comment.