Skip to content

Commit

Permalink
Simplify the main command
Browse files Browse the repository at this point in the history
  • Loading branch information
bjeight committed Oct 25, 2023
1 parent c3f1e7b commit a4673f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ var (
}
)

func Execute() {
func main() {
err := rootCmd.Execute()
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}

func main() {
Execute()
}

var p string
var f bool
var c bool
Expand Down

0 comments on commit a4673f8

Please sign in to comment.