Format main.go
This commit is contained in:
parent
dfeef3e271
commit
5b445eb29a
8
main.go
8
main.go
@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user