Skip to content

Commit

Permalink
v1.7.2
Browse files Browse the repository at this point in the history
Fix path display issues on windows.
  • Loading branch information
efugier committed Oct 21, 2024
1 parent 9d5ebd7 commit 163cdc8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "smartcat"
version = "1.7.1"
version = "1.7.2"
authors = ["Emilien Fugier <[email protected]>"]
description = '''
Putting a brain behind `cat`.
Expand Down
12 changes: 6 additions & 6 deletions src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,25 @@ pub fn ensure_config_files() -> std::io::Result<()> {
if !prompts_path().exists() {
if interactive {
println!(
"Prompt config file not found at {:?}, generating one.\n...",
prompts_path().into_os_string()
"Prompt config file not found at {}, generating one.\n...",
prompts_path().display()
);
}
generate_prompts_file()?
}

if !voice_config_path().exists() {
println!(
"Voice config file not found at {:?}, generating one.\n...",
voice_config_path().into_os_string()
"Voice config file not found at {}, generating one.\n...",
voice_config_path().display()
);
generate_voice_file().expect("Unable to generate config files");
};

if !api_keys_path().exists() {
println!(
"API config file not found at {:?}, generating one.\n...",
api_keys_path().into_os_string()
"API config file not found at {}, generating one.\n...",
api_keys_path().display()
);
generate_api_keys_file().expect("Unable to generate config files");
if interactive {
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const DEFAULT_PROMPT_NAME: &str = "default";
#[command(
name = "smartcat (sc)",
author = "Emilien Fugier",
version = "1.7.1",
version = "1.7.2",
about = "Putting a brain behind `cat`. CLI interface to bring language models in the Unix ecosystem 🐈‍⬛",
long_about = None,
after_help = "Examples:
Expand Down

0 comments on commit 163cdc8

Please sign in to comment.