summaryrefslogtreecommitdiffstats
path: root/pkg/app
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2023-08-28 12:24:58 +0200
committerStefan Haller <stefan@haller-berlin.de>2023-09-04 17:48:39 +0200
commit18c57804854692bd84ac50e88a10da7d81df363d (patch)
tree7688502567c915283df6a03a6597b9b9afd7eb6c /pkg/app
parente895052437d3da7e263a64ad7e7332513af3d7cc (diff)
Add AppState to common.Common
Diffstat (limited to 'pkg/app')
-rw-r--r--pkg/app/app.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/app/app.go b/pkg/app/app.go
index f34611b34..f8e267ee9 100644
--- a/pkg/app/app.go
+++ b/pkg/app/app.go
@@ -62,6 +62,7 @@ func Run(
func NewCommon(config config.AppConfigurer) (*common.Common, error) {
userConfig := config.GetUserConfig()
+ appState := config.GetAppState()
var err error
log := newLogger(config)
@@ -74,6 +75,7 @@ func NewCommon(config config.AppConfigurer) (*common.Common, error) {
Log: log,
Tr: tr,
UserConfig: userConfig,
+ AppState: appState,
Debug: config.GetDebug(),
Fs: afero.NewOsFs(),
}, nil