1
0
mirror of https://gitea.com/jolheiser/sip synced 2024-11-26 07:33:48 +01:00
sip/main.go
John Olheiser 427ecdb7f1 Clean up and polish (#1)
Move issues validator

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Comments

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Package cleanup

Signed-off-by: jolheiser <john.olheiser@gmail.com>

Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: https://gitea.com/jolheiser/sip/pulls/1
2020-02-18 05:27:52 +00:00

34 lines
535 B
Go

package main
import (
"gitea.com/jolheiser/beaver"
"gitea.com/jolheiser/sip/cmd"
"github.com/urfave/cli/v2"
"os"
)
var Version = "develop"
func main() {
// config loads on init
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.Tokens,
&cmd.Repo,
&cmd.Issues,
&cmd.Pulls,
}
app.Flags = cmd.Flags
app.EnableBashCompletion = true
err := app.Run(os.Args)
if err != nil {
beaver.Error(err)
}
}