From 3648a190b781aa29b08b7d6e43d15b0f79538a1a Mon Sep 17 00:00:00 2001 From: qwjyh Date: Mon, 28 Aug 2023 22:40:43 +0900 Subject: [PATCH] completed storage add --- src/main.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3d0e380..9bb5e92 100644 --- a/src/main.rs +++ b/src/main.rs @@ -317,7 +317,7 @@ fn main() -> Result<()> { // select storage let device = get_device(&config_dir)?; let storage = select_physical_storage(device, &storages)?; - trace!("storage: {:?}", storage); + println!("storage: {:?}", storage); let new_storage_name = storage.name().clone(); // add to storages @@ -329,10 +329,11 @@ fn main() -> Result<()> { // commit add_and_commit(&repo, &Path::new(STORAGESFILE), &format!("Add new storage(physical drive): {}", new_storage_name))?; - unimplemented!() + + println!("Added new storage."); + trace!("Finished adding storage"); } } - unimplemented!() } }, Commands::Path {} => { @@ -561,4 +562,4 @@ fn full_status(repo: &Repository) -> Result<()> { trace!(" {}: {:?}", path, st); } Ok(()) -} \ No newline at end of file +}