blob: 30f1d1d404afd1c728abcba1046c8954139f37fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
package main
import (
"context"
"log"
"os"
"github.com/nerdsec/goaes/cmd/goaes/commands"
"github.com/urfave/cli/v3"
)
func main() {
cmd := &cli.Command{
Name: "goaes",
Usage: "Simple AES encryption built with Go",
Action: func(ctx context.Context, cmd *cli.Command) error {
return cli.DefaultShowRootCommandHelp(cmd)
},
Commands: []*cli.Command{
{
Name: "generate",
Aliases: []string{"g"},
Usage: "Generate a base64 encoded key",
Action: commands.Generate,
},
},
}
if err := cmd.Run(context.Background(), os.Args); err != nil {
log.Fatal(err)
}
}
|