Skip to content

Commit

Permalink
refactor: cli app
Browse files Browse the repository at this point in the history
  • Loading branch information
christophwitzko committed Aug 11, 2020
1 parent ecad972 commit 5e1d168
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions cmd/semantic-release/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ func errorHandler(logger *log.Logger) func(error, ...int) {
}

func main() {
app := cli.NewApp()
app.Name = "semantic-release"
app.Usage = "automates the package release workflow including: determining the next version number and generating the change log"
app.Version = SRVERSION
app.Flags = config.CliFlags
app.Action = cliHandler
app := &cli.App{
Name: "semantic-release",
Usage: "automates the package release workflow including: determining the next version number and generating the change log",
Version: SRVERSION,
Commands: nil,
Flags: config.CliFlags,
Action: cliHandler,
}

err := app.Run(os.Args)
if err != nil {
Expand Down

0 comments on commit 5e1d168

Please sign in to comment.