fix: generate $schema field always with forward slash (#8673)

This commit is contained in:
Amr Bashir
2024-01-25 02:57:41 +02:00
committed by GitHub
parent 049ca2d54f
commit 734d78f736

View File

@@ -306,7 +306,10 @@ commands.deny = ["{command}"]
"###,
command = command,
slugified_command = slugified_command,
schema_path = schema_path.display().to_string().replace('\\', "\\\\")
schema_path = dunce::simplified(&schema_path)
.display()
.to_string()
.replace('\\', "/")
);
let out_path = path.join(format!("{command}.toml"));