Experiment with TUI implementation using illwill
This commit is contained in:
@@ -1,20 +1,11 @@
|
||||
import prologue
|
||||
import asyncdispatch
|
||||
import ./tui
|
||||
|
||||
import ./urls
|
||||
proc main() =
|
||||
# Initialize TUI
|
||||
initUi()
|
||||
|
||||
let
|
||||
env = loadPrologueEnv(".env")
|
||||
settings = newSettings(
|
||||
appName = env.getOrDefault("appName", "Prologue"),
|
||||
debug = env.getOrDefault("debug", true),
|
||||
port = Port(env.getOrDefault("port", 8080)),
|
||||
secretKey = env.getOrDefault("secretKey", "")
|
||||
)
|
||||
var app = newApp(settings = settings)
|
||||
|
||||
app.addRoute(urls.indexPatterns, "/")
|
||||
app.addRoute(urls.clientPatterns, "/client")
|
||||
app.addRoute(urls.agentPatterns, "/agent")
|
||||
|
||||
waitFor app.runAsync()
|
||||
|
||||
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user