Skip to content

Commit

Permalink
Merge pull request #883 from urfave/remove-flag-generation
Browse files Browse the repository at this point in the history
Remove flag generation
  • Loading branch information
asahasrabuddhe committed Sep 11, 2019
2 parents b207e20 + 35eb598 commit e19126a
Show file tree
Hide file tree
Showing 28 changed files with 1,483 additions and 2,209 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ before_script:
- go mod tidy

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.

0 comments on commit e19126a

Please sign in to comment.