diff --git a/fish/.config/fish/completions/bun.fish b/fish/.config/fish/completions/bun.fish index 64a74ce..da5eaaf 100644 --- a/fish/.config/fish/completions/bun.fish +++ b/fish/.config/fish/completions/bun.fish @@ -33,7 +33,7 @@ function __fish__get_bun_bun_js_files end set -l bun_install_boolean_flags yarn production optional development no-save dry-run force no-cache silent verbose global -set -l bun_install_boolean_flags_descriptions "Write a yarn.lock file (yarn v1)" "Don't install devDependencies" "Add dependency to optionalDependencies" "Add dependency to devDependencies" "Don't install devDependencies" "Don't install anything" "Always request the latest versions from the registry & reinstall all dependencies" "Ignore manifest cache entirely" "Don't output anything" "Excessively verbose logging" "Use global folder" +set -l bun_install_boolean_flags_descriptions "Write a yarn.lock file (yarn v1)" "Don't install devDependencies" "Add dependency to optionalDependencies" "Add dependency to devDependencies" "Don't update package.json or save a lockfile" "Don't install anything" "Always request the latest versions from the registry & reinstall all dependencies" "Ignore manifest cache entirely" "Don't output anything" "Excessively verbose logging" "Use global folder" set -l bun_builtin_cmds_without_run dev create help bun upgrade discord install remove add init pm x set -l bun_builtin_cmds_accepting_flags create help bun upgrade discord run init link unlink pm x @@ -53,7 +53,7 @@ function __bun_complete_bins_scripts --inherit-variable bun_builtin_cmds_without # Scripts have descriptions appended with a tab separator. # Strip off descriptions for the purposes of subcommand testing. set -l scripts (__fish__get_bun_scripts) - if __fish_seen_subcommand_from $(string split \t -f 1 -- $scripts) + if __fish_seen_subcommand_from (string split \t -f 1 -- $scripts) return end # Emit scripts. @@ -71,7 +71,6 @@ function __bun_complete_bins_scripts --inherit-variable bun_builtin_cmds_without end end - # Clear existing completions complete -e -c bun @@ -121,18 +120,15 @@ complete -c bun \ complete -c bun \ -n __fish_use_subcommand -a discord -d 'Open bun\'s Discord server' -x - complete -c bun \ -n __fish_use_subcommand -a bun -d 'Generate a new bundle' - complete -c bun \ -n "__fish_seen_subcommand_from bun" -F -d 'Bundle this' complete -c bun \ -n "__fish_seen_subcommand_from create; and __fish_seen_subcommand_from react next" -F -d "Create in directory" - complete -c bun \ -n __fish_use_subcommand -a init -F -d 'Start an empty Bun project' @@ -145,7 +141,6 @@ complete -c bun \ complete -c bun \ -n __fish_use_subcommand -a remove -F -d 'Remove a package from package.json' - for i in (seq (count $bun_install_boolean_flags)) complete -c bun \ -n "__fish_seen_subcommand_from install add remove" -l "$bun_install_boolean_flags[$i]" -d "$bun_install_boolean_flags_descriptions[$i]" @@ -179,6 +174,8 @@ complete -c bun -n __fish_use_subcommand -a remove -d "Remove a dependency from complete -c bun -n __fish_use_subcommand -a add -d "Add a dependency to package.json" -f complete -c bun -n __fish_use_subcommand -a init -d "Initialize a Bun project in this directory" -f complete -c bun -n __fish_use_subcommand -a link -d "Register or link a local npm package" -f -complete -c bun -n __fish_use_subcommand -a link -d "Unregister a local npm package" -f +complete -c bun -n __fish_use_subcommand -a unlink -d "Unregister a local npm package" -f complete -c bun -n __fish_use_subcommand -a pm -d "Additional package management utilities" -f complete -c bun -n __fish_use_subcommand -a x -d "Execute a package binary, installing if needed" -f +complete -c bun -n __fish_use_subcommand -a outdated -d "Display the latest versions of outdated dependencies" -f +complete -c bun -n __fish_use_subcommand -a publish -d "Publish your package from local to npm" -f