feat: add archive

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-09 17:02:06 +02:00
parent 9ceaa4cd38
commit 56a63dbb7d
6 changed files with 56 additions and 10 deletions

View File

@@ -39,10 +39,12 @@ pub async fn execute(state: State) -> Result<()> {
}
fn run(terminal: &mut Terminal<CrosstermBackend<Stdout>>, state: SharedState) -> Result<()> {
let mut graph_explorer = GraphExplorer::new(state.clone());
let root = "kjuulh".to_string();
let mut graph_explorer = GraphExplorer::new(root.clone(), state.clone());
graph_explorer.update_graph()?;
let mut app = App::new("kjuulh", state.clone(), graph_explorer);
let mut app = App::new(&root, state.clone(), graph_explorer);
loop {
terminal.draw(|f| render_app(f, &mut app))?;