We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff9099b commit 27912afCopy full SHA for 27912af
internal/runner/render/render.go
@@ -91,6 +91,14 @@ func (r *renderRunner) Exec(
91
92
ctx.Logger.Infof("Rendering content from file %s", contentFile)
93
filename := filepath.Base(contentFile)
94
+
95
+ if err := ctx.TUIContainer.Start(); err != nil {
96
+ return errors.Wrapf(err, "unable to open viewer")
97
+ }
98
+ defer func() {
99
+ ctx.TUIContainer.WaitForExit()
100
+ }()
101
102
ctx.TUIContainer.SetState("file", filename)
103
return ctx.TUIContainer.SetView(views.NewMarkdownView(ctx.TUIContainer.RenderState(), buff.String()))
104
}
0 commit comments