Browse Source

En cours de développement

master
losyme 5 months ago
parent
commit
557932d06c
  1. 4
      internal/application/application.go
  2. 2
      internal/application/cmdline.go
  3. 2
      internal/application/config.go
  4. 0
      internal/application/events.go

4
internal/application/application.go

@ -41,8 +41,8 @@ func New(name, version, builtAt string, args []string) *Application {
"server",
},
CmdLineArgs: args,
CmdLineInit: app.cmdlineInitialize,
ConfigInit: app.configInitialize,
CmdLineInit: app.initCmdLine,
ConfigInit: app.initConfig,
SchedulerCb: app.eventManager,
})

2
internal/application/cmdline.go

@ -14,7 +14,7 @@ type cmdLine struct {
runAfter func() error
}
func (app *Application) cmdlineInitialize(c *cmdline.CmdLine) {
func (app *Application) initCmdLine(c *cmdline.CmdLine) {
cl := app.cmdLine
c.BoolFlag(&cl.demo, "demo", false, "demonstration mode")

2
internal/application/config.go

@ -8,7 +8,7 @@ package application
import "forge.chapril.org/losyme/config"
func (app *Application) configInitialize(c *config.Config) {
func (app *Application) initConfig(c *config.Config) {
c.Set("trace", "logger", "level")
c.Set([]string{"stderr"}, "logger", "outputs")

0
internal/application/scheduler.go → internal/application/events.go

Loading…
Cancel
Save