This commit is contained in:
zhiqiang feng
2020-12-31 11:34:52 +08:00
parent 3482f89446
commit f885002440
8 changed files with 74 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
package main
import (
"fmt"
"log"
"os"
"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)
}
}