Jobs & Workflows https://armen.surge.sh
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

/*
------------------------------------------------------------------------------------------------------------------------
####### main ####### Copyright (c) 2021 mls-361 #################################################### MIT License #######
------------------------------------------------------------------------------------------------------------------------
*/
package main
import (
"os"
"forge.chapril.org/armen/armen/internal/cmdline"
"forge.chapril.org/armen/armen/internal/config"
"forge.chapril.org/armen/armen/internal/engine"
"forge.chapril.org/armen/armen/internal/supervisor"
"forge.chapril.org/mls-361/application"
)
var (
_version string
_builtAt string
)
func appRun() error {
app := application.New("armen", _version, _builtAt)
if end, err := cmdline.Parse(app); end || err != nil {
return app.OnError(err)
}
config := config.New(app)
engine := engine.New(app, config)
supervisor := supervisor.New(config, engine)
return app.OnError(supervisor.Run())
}
func main() {
if appRun() != nil {
os.Exit(1)
}
}
/*
######################################################################################################## @(°_°)@ #######
*/