add x.py.zsh to tidy check
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
f457c61fc3
commit
fa013d50ef
@ -1135,13 +1135,14 @@ fn run(self, builder: &Builder<'_>) {
|
||||
builder.ensure(ExpandYamlAnchors);
|
||||
|
||||
builder.info("x.py completions check");
|
||||
let [bash, fish, powershell] = ["x.py.sh", "x.py.fish", "x.py.ps1"]
|
||||
let [bash, zsh, fish, powershell] = ["x.py.sh", "x.py.zsh", "x.py.fish", "x.py.ps1"]
|
||||
.map(|filename| builder.src.join("src/etc/completions").join(filename));
|
||||
if builder.config.cmd.bless() {
|
||||
builder.ensure(crate::run::GenerateCompletions);
|
||||
} else if crate::flags::get_completion(shells::Bash, &bash).is_some()
|
||||
|| crate::flags::get_completion(shells::Fish, &fish).is_some()
|
||||
|| crate::flags::get_completion(shells::PowerShell, &powershell).is_some()
|
||||
|| crate::flags::get_completion(shells::Zsh, &zsh).is_some()
|
||||
{
|
||||
eprintln!(
|
||||
"x.py completions were changed; run `x.py run generate-completions` to update them"
|
||||
|
Loading…
Reference in New Issue
Block a user