package main import ( "gitea.com/jolheiser/beaver" "gitea.com/jolheiser/sip/cmd" "github.com/urfave/cli/v2" "os" ) var Version = "develop" func main() { app := cli.NewApp() app.Name = "Sip" app.Usage = "Command line tool to interact with Gitea" app.Version = Version app.Commands = []*cli.Command{ &cmd.Config, &cmd.Login, &cmd.Logout, &cmd.Repo, &cmd.Issues, &cmd.Pulls, } app.Flags = cmd.Flags app.EnableBashCompletion = true err := app.Run(os.Args) if err != nil { beaver.Error(err) } }