Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove flag generation #883

Merged
merged 6 commits into from
Sep 11, 2019
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,13 @@ cache:
- node_modules

before_script:
- 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:
- go run build.go generate
- go run build.go vet
- go run build.go test
- go run build.go gfmrun
Expand Down
3 changes: 0 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,10 @@ install:
- set PATH=%GOPATH%\bin;C:\go\bin;%PATH%
- go version
- go env
- go get github.com/shurcooL/vfsgen
- go get github.com/shurcooL/httpfs/union
- go get github.com/urfave/gfmrun/...
- go get -v -t ./...

build_script:
- go run build.go generate
- go run build.go vet
- go run build.go test
- go run build.go gfmrun
23 changes: 0 additions & 23 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@ func main() {
Name: "toc",
Action: TocActionFunc,
},
cli.Command{
Name: "generate",
Action: GenActionFunc,
},
}

err := app.Run(os.Args)
Expand Down Expand Up @@ -166,22 +162,3 @@ func TocActionFunc(_ *cli.Context) error {

return nil
}

func GenActionFunc(_ *cli.Context) error {
err := runCmd("go", "generate", "flag-gen/main.go")
if err != nil {
return err
}

err = runCmd("go", "generate", "cli.go")
if err != nil {
return err
}

err = runCmd("git", "diff", "--exit-code")
if err != nil {
return err
}

return nil
}
1 change: 0 additions & 1 deletion flag-gen/.gitignore

This file was deleted.

55 changes: 0 additions & 55 deletions flag-gen/assets_generate.go

This file was deleted.

214 changes: 0 additions & 214 deletions flag-gen/assets_vfsdata.go

This file was deleted.

9 changes: 0 additions & 9 deletions flag-gen/go.mod

This file was deleted.

9 changes: 0 additions & 9 deletions flag-gen/go.sum

This file was deleted.