adding cli to start

This commit is contained in:
Tyrel Souza 2020-02-25 11:14:46 -05:00
parent 62a7f88786
commit b93731e685
No known key found for this signature in database
GPG Key ID: 5A9394D4C30AEAC0

25
main.go Normal file
View File

@ -0,0 +1,25 @@
package main
import (
"fmt"
"log"
"os"
cli "github.com/urfave/cli/v2"
)
func main() {
app := &cli.App{
Name: "boom",
Usage: "make an explosive entrance",
Action: func(c *cli.Context) error {
fmt.Println("boom! I say!")
return nil
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}