Skip to content

Commit d4565b4

Browse files
committed
fix(cli): print message when opening config in editor
Fixes bounty issue #1212 When running 'cortex config --edit', the command now prints a message indicating which editor is being used before opening it. This helps users understand what is happening, especially on Windows where editors may open in the background.
1 parent 7a104aa commit d4565b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cortex-cli/src/main.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,8 @@ async fn show_config(config_cli: ConfigCommand) -> Result<()> {
945945
std::fs::write(&config_path, default_config)?;
946946
}
947947

948+
println!("Opening config in {}...", editor);
949+
948950
let status = std::process::Command::new(&editor)
949951
.arg(&config_path)
950952
.status()?;

0 commit comments

Comments
 (0)