package commands import ( "code.destrealm.net/zancarius/justusbot/internal/settings" "go.destrealm.net/vfs" ) type commands struct { root vfs.VFS meta *metadata verse *verse settings *settings.Settings } func NewCommandHost(root vfs.VFS) (*commands, error) { conf, err := settings.LoadSettings("settings.toml", root) if err != nil { return nil, err } cmd := &commands{ root: root, settings: conf, } cmd.meta = OpenMetadata(root, cmd) return cmd, nil } func (c *commands) Initalizer() *installer { i, _ := initInstaller(c.root, c.settings) return i } func (c *commands) Meta() *metadata { return c.meta } func (c *commands) Verse() *verse { return c.verse }