Adjustments following kind discussion with LunarJetman on IRC

This commit is contained in:
2020-03-22 17:19:26 +00:00
parent ba7c06e5fd
commit 3cb32b8962
9 changed files with 73 additions and 62 deletions

21
cmd/ordoor/main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"log"
"os"
"code.ur.gs/lupine/ordoor/internal/ordoor"
)
func main() {
configFile := "config.toml"
if len(os.Args) == 2 {
configFile = os.Args[1]
}
if err := ordoor.Run(configFile); err != nil {
log.Fatalf(err.Error())
}
os.Exit(0)
}