From d6a8995d52014db86be55b145180ae3f188e7ecf Mon Sep 17 00:00:00 2001 From: 1adept <69433209+1adept@users.noreply.github.com> Date: Tue, 18 Jun 2024 16:18:07 +0200 Subject: [PATCH] mask-completions: Fixed shadowing --- custom-completions/mask/mask-completions.nu | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/custom-completions/mask/mask-completions.nu b/custom-completions/mask/mask-completions.nu index 71a5fff6f..2a4f901e3 100644 --- a/custom-completions/mask/mask-completions.nu +++ b/custom-completions/mask/mask-completions.nu @@ -44,13 +44,7 @@ def "nu-complete mask args" [context: string, offset: int] { $rt } -export def main [ +export extern "mask" [ recipes?: string@"nu-complete mask recipes" ...args: any@"nu-complete mask args" -] { - if ($recipes | is-empty) { - ^mask --help - } else { - ^mask $recipes $args - } -} +]