mirror of
https://gitea.com/jolheiser/sip
synced 2024-11-22 19:51:58 +01:00
58fe648da6
Signed-off-by: jolheiser <john.olheiser@gmail.com>
32 lines
565 B
Go
32 lines
565 B
Go
package main
|
|
|
|
import (
|
|
"gitea.com/jolheiser/beaver"
|
|
"gitea.com/jolheiser/tea/cmd"
|
|
"github.com/urfave/cli/v2"
|
|
"os"
|
|
)
|
|
|
|
var Version = "develop"
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
app.Name = "Tea"
|
|
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.Fatalf("Failed to run app with %s: %v", os.Args, err)
|
|
}
|
|
}
|