2022-05-21 00:49:13 +02:00
|
|
|
// Copyright 2022 wanderer <a_mirre at utb dot cz>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
2022-03-12 10:29:25 +01:00
|
|
|
package main
|
|
|
|
|
2022-05-03 20:22:43 +02:00
|
|
|
import (
|
2022-05-27 22:28:43 +02:00
|
|
|
"log"
|
2022-05-03 20:22:43 +02:00
|
|
|
|
2022-05-12 15:54:16 +02:00
|
|
|
"git.dotya.ml/wanderer/go-xkcdreader/cmd"
|
2022-05-19 17:24:00 +02:00
|
|
|
"git.dotya.ml/wanderer/go-xkcdreader/xkcdreader"
|
2022-05-03 20:22:43 +02:00
|
|
|
)
|
|
|
|
|
2022-05-12 15:54:16 +02:00
|
|
|
var version = cmd.GetShortVersion()
|
2022-05-10 20:41:06 +02:00
|
|
|
|
2022-05-03 20:22:43 +02:00
|
|
|
func main() {
|
2022-05-12 15:54:16 +02:00
|
|
|
cmd.Execute()
|
|
|
|
|
2022-05-27 22:28:43 +02:00
|
|
|
log.Println("Starting " + cmd.GetAppName() + " " + version)
|
2022-05-03 20:22:43 +02:00
|
|
|
|
2022-05-19 17:24:00 +02:00
|
|
|
xkcdreader.RunApp()
|
2022-05-03 20:22:43 +02:00
|
|
|
|
2022-05-27 22:28:43 +02:00
|
|
|
log.Println("Exited")
|
2022-05-03 20:22:43 +02:00
|
|
|
}
|