summaryrefslogtreecommitdiffstats
path: root/src/repl.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-04 22:18:42 +0800
committerGitHub <noreply@github.com>2023-03-04 22:18:42 +0800
commit069583098f4d168879740b5cb37755cd5a2a568f (patch)
tree7ab9f15175a989e3267d184bf91f2873c13a0e3c /src/repl.rs
parentafe3f2383153e083ca498c6b1df294785d057da7 (diff)
downloadaichat-069583098f4d168879740b5cb37755cd5a2a568f.tar.gz
refactor: no need tui, just render stream directly (#8)
Diffstat (limited to 'src/repl.rs')
-rw-r--r--src/repl.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/repl.rs b/src/repl.rs
index e1cf4cf..3ccc7e4 100644
--- a/src/repl.rs
+++ b/src/repl.rs
@@ -251,15 +251,6 @@ impl ReplCmdHandler {
&receiver.output,
);
wg.wait();
- match self.render.clone() {
- Some(markdown_render) => {
- markdown_render.print(&receiver.output)?;
- dump("", 1);
- }
- None => {
- dump(&receiver.output, 2);
- }
- }
self.state.borrow_mut().output = receiver.output;
}
ReplCmd::SetRole(name) => match self.config.find_role(&name) {