fix(ahk): implement syntax corrections by @sitiom

This commit implements the suggestions made by @sitiom on Discord:
https://discord.com/channels/898554690126630914/898554690608967786/1097403455267667968

re #324
This commit is contained in:
LGUG2Z
2023-04-18 12:05:54 -07:00
committed by جاد
parent 60d3ecd8aa
commit e044a5a16f
6 changed files with 359 additions and 360 deletions

View File

@@ -1076,17 +1076,19 @@ fn main() -> Result<()> {
file.write_all(fixed_output.as_bytes())?;
println!(
"\nAHK helper library for komorebic written to {}",
"\nAHKv1 helper library for komorebic written to {}",
library.to_str().ok_or_else(|| anyhow!(
"could not find the path to the generated ahk lib file"
))?
);
println!("\nYou can convert this file to AHKv2 syntax using https://github.com/mmikeww/AHK-v2-script-converter");
println!(
"\nYou can include the library at the top of your ~/komorebi.ahk config with this line:"
"\nYou can include the converted library at the top of your komorebi.ahk config with this line:"
);
println!("\n#Include %A_ScriptDir%\\komorebic.lib.ahk");
println!("\n#Include komorebic.lib.ahk");
}
SubCommand::Log => {
let mut color_log = std::env::temp_dir();