func (gapp *GoatApp) initFilespaceScope(path string) error { var err error gapp.rootFilespace, err = diskfs.NewFilespace(path) if err != nil { return err } gapp.filespaceScope = scope.NewScope(app.FilespaceTagName) gapp.filespaceScope.Set(app.RootFilespace, gapp.rootFilespace) return nil }
func (gapp *GoatApp) initAppScope() error { gapp.appScope = scope.NewScope(app.AppTagName) gapp.appScope.Set(app.AppName, gapp.name) gapp.appScope.Set(app.AppVersion, gapp.version) return nil }
func (gapp *GoatApp) initCommandScope() error { gapp.commandScope = scope.NewScope(app.CommandTagName) return nil }