Start development work on webserver runtime

This commit is contained in:
2020-12-27 04:27:57 -05:00
parent fd2814d77a
commit 469d1dfcb3
4 changed files with 72 additions and 3 deletions

12
main.go
View File

@@ -3,11 +3,14 @@ package main
import (
"fmt"
"github.com/josephbmanley/OpenSkins/pluginmanager"
"github.com/josephbmanley/OpenSkins/runtime"
log "github.com/sirupsen/logrus"
"os"
"plugin"
)
var appRuntime = "webserver"
const plugindirectory = "./plugins"
func main() {
@@ -37,7 +40,12 @@ func main() {
os.Exit(1)
}
log.Fatalln("Runtime is currently not implemented!")
os.Exit(1)
switch appRuntime {
case "webserver":
runtime.StartWebserver()
default:
log.Fatalln("Runtime is currently not implemented!")
os.Exit(1)
}
}