diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-29 11:37:15 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-01-04 09:07:15 +1100 |
commit | 18ab08612687b34ccfccd0b8d12d8d73e38b8857 (patch) | |
tree | 268bb3b9872e20c75d81102c6ebffdea0e6d6819 /pkg/common | |
parent | b4c078d565af69bcb2f46adc20e528e53ae32908 (diff) |
introduce Common struct for passing around common stuff
Diffstat (limited to 'pkg/common')
-rw-r--r-- | pkg/common/common.go | 15 |
1 files changed, 15 insertions, 0 deletions
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 +} |