1
0
mirror of https://github.com/khorevaa/kubodin.git synced 2025-01-17 18:44:40 +02:00
kubodin/main.go
2021-03-04 14:14:13 +03:00

42 lines
674 B
Go

package main
import (
"github.com/khorevaa/go-app-template/cmd"
"github.com/urfave/cli/v2"
"log"
"os"
)
// nolint: gochecknoglobals
var (
version = "dev"
commit = ""
date = ""
builtBy = ""
)
func main() {
app := &cli.App{
Name: "go-app-template",
Version: version,
Authors: []*cli.Author{
{
Name: "Aleksey Khorev",
},
},
Usage: "Description for go-app-template",
Copyright: "(c) 2021 Khorevaa",
//Description: "Command line utilities for server 1S.Enterprise",
}
for _, command := range cmd.Commands {
app.Commands = append(app.Commands, command.Cmd())
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}