Fixing updates

This commit is contained in:
alex
2025-07-10 18:03:30 +03:00
parent e71d69f3f1
commit 5bc334fd2c
21 changed files with 617 additions and 418 deletions

View File

@@ -6,16 +6,15 @@ import (
"time"
)
var ConfigPath string
type CompositorContract interface {
LoadEnv() error
LoadConf(path string) error
}
type Compositor struct {
Conf *Conf
Env *Env
CMDLine *CMDLine
Conf *Conf
Env *Env
}
type Conf struct {
@@ -57,3 +56,17 @@ type Env struct {
NodePath string `mapstructure:"node_path"`
ParentStagePID int `mapstructure:"parent_pid"`
}
type CMDLine struct {
Run Run
Node Root
}
type Root struct {
Debug bool `persistent:"true" full:"debug" short:"d" def:"false" desc:"Set debug mode"`
}
type Run struct {
ConfigPath string `persistent:"true" full:"config" short:"c" def:"./config.yaml" desc:"Path to configuration file"`
Test []int `persistent:"true" full:"test" short:"t" def:"" desc:"js test"`
}