aboutsummaryrefslogtreecommitdiff
path: root/mingling_core
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-12 03:55:38 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-12 03:55:38 +0800
commit643b5ccb1c27e76a03e85dc6fb9137c020dcae01 (patch)
tree47a34c33f55c4d426f77ced2fe3595c64ade2765 /mingling_core
parent2d2ba53b0deed00e5c41529b6362a8da65347550 (diff)
Fix typo in PowerShell shell flag from "pwsl" to "pwsh"HEADmain
Diffstat (limited to 'mingling_core')
-rw-r--r--mingling_core/src/asset/comp/flags.rs2
-rw-r--r--mingling_core/src/builds/comp.rs4
-rw-r--r--mingling_core/tmpls/comps/pwsh.ps1 (renamed from mingling_core/tmpls/comps/pwsl.ps1)0
3 files changed, 3 insertions, 3 deletions
diff --git a/mingling_core/src/asset/comp/flags.rs b/mingling_core/src/asset/comp/flags.rs
index 0762d0d..f61e9ac 100644
--- a/mingling_core/src/asset/comp/flags.rs
+++ b/mingling_core/src/asset/comp/flags.rs
@@ -17,7 +17,7 @@ impl From<String> for ShellFlag {
"zsh" => ShellFlag::Zsh,
"bash" => ShellFlag::Bash,
"fish" => ShellFlag::Fish,
- "pwsl" | "ps1" | "powershell" => ShellFlag::Powershell,
+ "pwsh" | "ps1" | "powershell" => ShellFlag::Powershell,
other => ShellFlag::Other(snake_case!(other)),
}
}
diff --git a/mingling_core/src/builds/comp.rs b/mingling_core/src/builds/comp.rs
index 694af0c..57faa2e 100644
--- a/mingling_core/src/builds/comp.rs
+++ b/mingling_core/src/builds/comp.rs
@@ -5,7 +5,7 @@ use crate::ShellFlag;
const TMPL_COMP_BASH: &str = include_str!("../../tmpls/comps/bash.sh");
const TMPL_COMP_ZSH: &str = include_str!("../../tmpls/comps/zsh.zsh");
const TMPL_COMP_FISH: &str = include_str!("../../tmpls/comps/fish.fish");
-const TMPL_COMP_PWSL: &str = include_str!("../../tmpls/comps/pwsl.ps1");
+const TMPL_COMP_PWSH: &str = include_str!("../../tmpls/comps/pwsh.ps1");
/// Generate shell completion scripts for the current binary.
/// On Windows, generates PowerShell completion.
@@ -74,7 +74,7 @@ fn get_tmpl(shell_flag: &ShellFlag) -> (&'static str, &'static str) {
ShellFlag::Bash => (TMPL_COMP_BASH, ".sh"),
ShellFlag::Zsh => (TMPL_COMP_ZSH, ".zsh"),
ShellFlag::Fish => (TMPL_COMP_FISH, ".fish"),
- ShellFlag::Powershell => (TMPL_COMP_PWSL, ".ps1"),
+ ShellFlag::Powershell => (TMPL_COMP_PWSH, ".ps1"),
ShellFlag::Other(_) => (TMPL_COMP_BASH, ".sh"),
}
}
diff --git a/mingling_core/tmpls/comps/pwsl.ps1 b/mingling_core/tmpls/comps/pwsh.ps1
index 6d7d91d..6d7d91d 100644
--- a/mingling_core/tmpls/comps/pwsl.ps1
+++ b/mingling_core/tmpls/comps/pwsh.ps1