aboutsummaryrefslogtreecommitdiff
path: root/dotup_cli/src/commands/init.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2021-07-14 15:07:32 +0100
committerdiogo464 <[email protected]>2021-07-14 15:07:32 +0100
commit1c0dee8e60d9c1c989a3712e7d1e19debe981e8a (patch)
tree07997fddae442679c90914b2c4abe3c953250838 /dotup_cli/src/commands/init.rs
parent4adc2435da7d58cd34b9f1706b3cea9fb524b946 (diff)
Small changes to logging and docs.
Diffstat (limited to 'dotup_cli/src/commands/init.rs')
-rw-r--r--dotup_cli/src/commands/init.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/dotup_cli/src/commands/init.rs b/dotup_cli/src/commands/init.rs
index 8765dbf..b894924 100644
--- a/dotup_cli/src/commands/init.rs
+++ b/dotup_cli/src/commands/init.rs
@@ -11,11 +11,11 @@ pub struct Opts {}
11pub fn main(config: Config, opts: Opts) -> anyhow::Result<()> { 11pub fn main(config: Config, opts: Opts) -> anyhow::Result<()> {
12 if !dotup::utils::is_file(&config.archive_path)? { 12 if !dotup::utils::is_file(&config.archive_path)? {
13 let archive = Archive::default(); 13 let archive = Archive::default();
14 log::info!("Creating archive"); 14 log::info!("Creating archive at {}", &config.archive_path.display());
15 utils::write_archive(&config.archive_path, &archive)?; 15 utils::write_archive(&config.archive_path, &archive)?;
16 } else { 16 } else {
17 log::info!( 17 log::warn!(
18 "Archive file already exists : {}", 18 "Archive file already exists : '{}'",
19 config.archive_path.display() 19 config.archive_path.display()
20 ); 20 );
21 } 21 }