chore: add log

This commit is contained in:
lencx
2022-12-18 11:50:34 +08:00
parent 4366b8ee8a
commit c07fd1e0b8
6 changed files with 55 additions and 21 deletions

View File

@@ -1,4 +1,5 @@
use anyhow::Result;
use log::info;
use std::{
fs::{self, File},
path::{Path, PathBuf},
@@ -48,6 +49,7 @@ pub fn user_script() -> String {
}
pub fn open_file(path: PathBuf) {
info!("open_file: {}", path.to_string_lossy());
#[cfg(target_os = "macos")]
Command::new("open").arg("-R").arg(path).spawn().unwrap();