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"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
app := &cli.App{
|
|
|
|
Name: "nak",
|
|
|
|
Usage: "the nostr army knife command-line tool",
|
|
|
|
Commands: []*cli.Command{
|
2023-05-03 15:33:32 -04:00
|
|
|
req,
|
2023-08-23 10:33:49 -04:00
|
|
|
count,
|
2023-10-15 08:18:19 -04:00
|
|
|
fetch,
|
2023-05-03 17:14:06 -04:00
|
|
|
event,
|
2023-05-04 07:45:48 -04:00
|
|
|
decode,
|
2023-07-05 14:03:26 -04:00
|
|
|
encode,
|
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
|
|
|
}
|
|
|
|
}
|