From 695556c3441f5ffd40c35387a5b45e4459684c2c Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Fri, 6 Sep 2024 17:12:52 +0200 Subject: add get specific or last backup --- src/main.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index e0b3758..d5ccb75 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,11 +21,13 @@ fn main() -> color_eyre::Result<()> { let pkgs = pacman.get_installed(); let backup = Backup::create(&cfg, pkgs)?; - // println!("{backup:#?}"); + println!("{backup:#?}"); - backup.save(&cfg)?; + // backup.save(&cfg)?; - Backup::get(&cfg, None)?; + let index = Backup::get_index(&cfg, None)?; + + println!("{index:#?}"); // let fi = FileInfo::new("~/.config/nvim", &cfg)?; // println!("{:?}", fi.get_absolute_path()); -- cgit v1.2.3