diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-29 11:37:15 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-12-29 11:37:15 +1100 |
commit | bdc54a5debd8f6b71a52d66841d986c5a74ca813 (patch) | |
tree | 8852f2758d67aa68974277f73c35b30cac3626bf /pkg/common/common.go | |
parent | d913c041098438bf07b8d1e3bbb6cef2195b671a (diff) |
introduce Common struct for passing around common stuff
Diffstat (limited to 'pkg/common/common.go')
-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 +} |