aboutsummaryrefslogtreecommitdiff
path: root/main.go
blob: 5088e8481ef714eccdcde927db28241c246741f4 (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
package main

import (
	"context"
	"flag"
	"os"

	"github.com/google/subcommands"
)

func main() {
	subcommands.Register(subcommands.CommandsCommand(), "")
	subcommands.Register(subcommands.FlagsCommand(), "")
	subcommands.Register(subcommands.HelpCommand(), "")

	subcommands.Register(&checkCommand{}, "")
	subcommands.Register(&generateCommand{}, "")
	subcommands.Register(&signCommand{}, "")
	subcommands.Register(&verifyCommand{}, "")

	flag.Parse()

	ctx := context.Background()
	os.Exit(int(subcommands.Execute(ctx)))
}