diff options
author | fxqnlr <[email protected]> | 2024-09-06 17:12:52 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2024-09-06 17:12:52 +0200 |
commit | 695556c3441f5ffd40c35387a5b45e4459684c2c (patch) | |
tree | 5a95edfc1c4b53b29220074e4598384390dd10a8 /src/main.rs | |
parent | ab7f99e061e54924899b778e929dd2e17c8792d9 (diff) | |
download | arbs-695556c3441f5ffd40c35387a5b45e4459684c2c.tar arbs-695556c3441f5ffd40c35387a5b45e4459684c2c.tar.gz arbs-695556c3441f5ffd40c35387a5b45e4459684c2c.zip |
add get specific or last backup
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 5 insertions, 3 deletions
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<()> { | |||
21 | let pkgs = pacman.get_installed(); | 21 | let pkgs = pacman.get_installed(); |
22 | 22 | ||
23 | let backup = Backup::create(&cfg, pkgs)?; | 23 | let backup = Backup::create(&cfg, pkgs)?; |
24 | // println!("{backup:#?}"); | 24 | println!("{backup:#?}"); |
25 | 25 | ||
26 | backup.save(&cfg)?; | 26 | // backup.save(&cfg)?; |
27 | 27 | ||
28 | Backup::get(&cfg, None)?; | 28 | let index = Backup::get_index(&cfg, None)?; |
29 | |||
30 | println!("{index:#?}"); | ||
29 | 31 | ||
30 | // let fi = FileInfo::new("~/.config/nvim", &cfg)?; | 32 | // let fi = FileInfo::new("~/.config/nvim", &cfg)?; |
31 | // println!("{:?}", fi.get_absolute_path()); | 33 | // println!("{:?}", fi.get_absolute_path()); |