Format main.go

This commit is contained in:
Noah 2024-03-17 17:59:56 -05:00
parent dfeef3e271
commit 5b445eb29a

View File

@ -14,7 +14,7 @@ var Clients map[string]*gitea.Client
func main() { func main() {
parser := argparse.NewParser("gitivity", "Command line tool to get Gitea statistics") parser := argparse.NewParser("gitivity", "Command line tool to get Gitea statistics")
Times := parser.NewCommand("times", "Get a user's tracked times.") Times := parser.NewCommand("times", "Get a user's tracked times.")
config_path := parser.String("c", "config", &argparse.Options{Required: false, Help: "Configuration file", Default: "./config.lua"}) config_path := parser.String("c", "config", &argparse.Options{Required: false, Help: "Configuration file", Default: "./config.lua"})
server_option := parser.String("s", "server", &argparse.Options{Required: false, Help: "Specific server to use"}) server_option := parser.String("s", "server", &argparse.Options{Required: false, Help: "Specific server to use"})
@ -48,8 +48,8 @@ func main() {
println("No servers configured / specified") println("No servers configured / specified")
os.Exit(0) os.Exit(0)
} }
if Times.Happened() { if Times.Happened() {
times() times()
} }
} }