mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Add demo test variant
We're piggybacking on our existing integration test framework to record demos that we can include in our docs
This commit is contained in:
@ -15,6 +15,10 @@ type OptionsMapMgr struct {
|
||||
}
|
||||
|
||||
func (gui *Gui) renderContextOptionsMap(c types.Context) {
|
||||
// In demos, we render our own content to this view
|
||||
if gui.integrationTest != nil && gui.integrationTest.IsDemo() {
|
||||
return
|
||||
}
|
||||
mgr := OptionsMapMgr{c: gui.c}
|
||||
mgr.renderContextOptionsMap(c)
|
||||
}
|
||||
|
Reference in New Issue
Block a user