nak/main.go

30 lines
344 B
Go
Raw Normal View History

2023-05-03 15:24:52 -04:00
package main
import (
2023-05-03 17:14:06 -04:00
"fmt"
2023-05-03 15:24:52 -04:00
"os"
"github.com/urfave/cli/v2"
)
2023-11-08 20:26:41 -05:00
var app = &cli.App{
Name: "nak",
Usage: "the nostr army knife command-line tool",
Commands: []*cli.Command{
req,
count,
fetch,
event,
decode,
encode,
verify,
},
}
2023-05-03 15:24:52 -04:00
2023-11-08 20:26:41 -05:00
func main() {
2023-05-03 15:24:52 -04:00
if err := app.Run(os.Args); err != nil {
2023-05-03 17:14:06 -04:00
fmt.Println(err)
os.Exit(1)
2023-05-03 15:24:52 -04:00
}
}