report which lines changed on up/down

set_local_db, toggle_after_line and set_dot_env now return a
FileChange (path + before/after line pairs) instead of (), and main
prints it after each toggle so 'up'/'down' shows exactly what the
program rewrote in each env file.
This commit is contained in:
2026-09-17 11:00:17 +02:00
parent 12b8701e00
commit 72e0c229f3
2 changed files with 289 additions and 21 deletions
+2 -2
View File
@@ -24,13 +24,13 @@ fn main() -> Result<()> {
start_docker_compose(&config.container_service, &config.container_dir, start)?;
if args.legacy {
println!("[!] Legacy mode active.");
set_local_db(start, &config)?;
print!("{}", set_local_db(start, &config)?);
toggle_index(start, &config)?;
} else {
println!("[!] Legacy mode deactivated.");
}
set_dot_env(start, &config)?;
print!("{}", set_dot_env(start, &config)?);
println!(
"[!] Don't forget your interpreter! Project directory: {}",