-
Notifications
You must be signed in to change notification settings - Fork 617
Expand file tree
/
Copy pathmain.go
More file actions
44 lines (40 loc) · 922 Bytes
/
main.go
File metadata and controls
44 lines (40 loc) · 922 Bytes
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
33
34
35
36
37
38
39
40
41
42
43
44
package main
import (
"context"
"fmt"
"os"
"github.com/unkeyed/unkey/cmd/api"
"github.com/unkeyed/unkey/cmd/auth"
"github.com/unkeyed/unkey/cmd/deploy"
dev "github.com/unkeyed/unkey/cmd/dev"
"github.com/unkeyed/unkey/cmd/healthcheck"
"github.com/unkeyed/unkey/cmd/run"
"github.com/unkeyed/unkey/cmd/version"
"github.com/unkeyed/unkey/pkg/buildinfo"
"github.com/unkeyed/unkey/pkg/cli"
)
func main() {
app := &cli.Command{
Flags: []cli.Flag{},
Aliases: []string{},
Action: nil,
Name: "unkey",
Usage: "Run unkey",
Description: `Unkey CLI – deploy, run and administer Unkey services.`,
Version: buildinfo.Version,
Commands: []*cli.Command{
api.Cmd(),
auth.Cmd,
run.Cmd,
version.Cmd,
deploy.Cmd,
healthcheck.Cmd,
dev.Cmd,
},
}
err := app.Run(context.Background(), os.Args)
if err != nil {
fmt.Println(err.Error())
os.Exit(1)
}
}