fmt: apply uniform formatting with name change

This commit is contained in:
2026-05-27 12:57:05 -06:00
parent a122ae36f0
commit 297a7d44bd
2 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -27,7 +27,9 @@ impl ShellCompletion {
Self::Bash => generate(Shell::Bash, cmd, COYOTE_CLI_NAME, &mut io::stdout()),
Self::Elvish => generate(Shell::Elvish, cmd, COYOTE_CLI_NAME, &mut io::stdout()),
Self::Fish => generate(Shell::Fish, cmd, COYOTE_CLI_NAME, &mut io::stdout()),
Self::PowerShell => generate(Shell::PowerShell, cmd, COYOTE_CLI_NAME, &mut io::stdout()),
Self::PowerShell => {
generate(Shell::PowerShell, cmd, COYOTE_CLI_NAME, &mut io::stdout())
}
Self::Zsh => generate(Shell::Zsh, cmd, COYOTE_CLI_NAME, &mut io::stdout()),
Self::Nushell => generate(Nushell, cmd, COYOTE_CLI_NAME, &mut io::stdout()),
}
+2 -1
View File
@@ -369,7 +369,8 @@ mod tests {
.duration_since(UNIX_EPOCH)
.expect("time went backwards")
.as_nanos();
let path = std::env::temp_dir().join(format!("coyote_python_parser_{file_name}_{unique}.py"));
let path =
std::env::temp_dir().join(format!("coyote_python_parser_{file_name}_{unique}.py"));
fs::write(&path, source).expect("failed to write temp python source");
let file = File::open(&path).expect("failed to open temp python source");
let result = generate_python_declarations(file, file_name, Some(parent));