Start development work on webserver runtime
This commit is contained in:
12
main.go
12
main.go
@@ -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)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user