chore: refactor app
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-10 12:20:43 +02:00
parent 86310c6764
commit f6a48540e1
6 changed files with 878 additions and 855 deletions

View File

@@ -5,8 +5,8 @@ use ratatui::{
};
use crate::{
command_parser::CommandParser, commands::IntoCommand, components::GraphExplorer,
state::SharedState, Msg,
command_parser::CommandParser, commands::IntoCommand,
components::graph_explorer::GraphExplorer, state::SharedState, Msg,
};
use self::{
@@ -125,6 +125,10 @@ impl<'a> App<'a> {
self.command = None;
return Ok(msg.into_command());
}
if command.is_quit() {
return Ok(Msg::QuitApp.into_command());
}
}
}
}