diff --git a/crates/cli/src/remember.rs b/crates/cli/src/remember.rs index e713a9ff..5dd08797 100644 --- a/crates/cli/src/remember.rs +++ b/crates/cli/src/remember.rs @@ -44,7 +44,7 @@ pub(crate) fn load_remembered_command(cryo_dir: PathBuf) -> Result Result, CollectError return handle_help_subcommands(args).await } + let cryo_dir: std::path::PathBuf = args.output_dir.clone().into(); + let cryo_dir = cryo_dir.join(".cryo"); + // remember previous command let args = if args.datatype.is_empty() { - let remembered = remember::load_remembered_command(args.output_dir.clone().into())?; + let remembered = remember::load_remembered_command(cryo_dir.clone())?; if remembered.cryo_version != cryo_freeze::CRYO_VERSION { eprintln!("remembered command comes from different cryo version, proceed with caution"); eprintln!(); @@ -35,7 +38,7 @@ pub async fn run(args: args::Args) -> Result, CollectError if args.remember { println!("remembering this command for future use"); println!(); - remember::save_remembered_command(args.output_dir.clone().into(), &args)?; + remember::save_remembered_command(cryo_dir, &args)?; } // handle regular flow