Skip to content

Commit

Permalink
Remove Flag Generation Logic
Browse files Browse the repository at this point in the history
  • Loading branch information
asahasrabuddhe committed Sep 7, 2019
1 parent 3eca109 commit cc4d661
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 800 deletions.
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.

Loading

0 comments on commit cc4d661

Please sign in to comment.