From bdc54a5debd8f6b71a52d66841d986c5a74ca813 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Wed, 29 Dec 2021 11:37:15 +1100 Subject: introduce Common struct for passing around common stuff --- pkg/common/common.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pkg/common/common.go (limited to 'pkg/common/common.go') diff --git a/pkg/common/common.go b/pkg/common/common.go new file mode 100644 index 000000000..e8251a85d --- /dev/null +++ b/pkg/common/common.go @@ -0,0 +1,15 @@ +package common + +import ( + "github.com/jesseduffield/lazygit/pkg/config" + "github.com/jesseduffield/lazygit/pkg/i18n" + "github.com/sirupsen/logrus" +) + +// Commonly used things wrapped into one struct for convenience when passing it around +type Common struct { + Log *logrus.Entry + Tr *i18n.TranslationSet + UserConfig *config.UserConfig + Debug bool +} -- cgit v1.2.3