From 58fe024aea692035fabfa989b8f1a475f30abc27 Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Wed, 12 Oct 2022 19:07:11 -0700 Subject: [PATCH] Add --hot to completions --- completions/bun.fish | 5 ++++- completions/bun.zsh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/completions/bun.fish b/completions/bun.fish index 74ac009d90..57c42cc799 100644 --- a/completions/bun.fish +++ b/completions/bun.fish @@ -75,13 +75,16 @@ complete -c bun \ complete -c bun \ -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'u' -l 'origin' -r -d 'Server URL. Rewrites import paths' complete -c bun \ --n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'p' -l 'port' -r -d 'Port number to start server from' + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'p' -l 'port' -r -d 'Port number to start server from' complete -c bun \ -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'd' -l 'define' -r -d 'Substitute K:V while parsing, e.g. --define process.env.NODE_ENV:\"development\"' complete -c bun \ -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -s 'e' -l 'external' -r -d 'Exclude module from transpilation (can use * wildcards). ex: -e react' complete -c bun \ -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -l 'use' -r -d 'Use a framework (ex: next)' +complete -c bun \ + -n "not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) install remove add;" --no-files -l 'hot' -r -d 'Enable hot reloading in Bun\'s JavaScript runtime' + complete -c bun \ -n "bun_fish_is_nth_token 1; and not __fish_seen_subcommand_from $bun_builtin_cmds; and not __fish_seen_subcommand_from (__fish__get_bun_bins) (__fish__get_bun_scripts) and __fish_use_subcommand" -a 'dev' -d 'Start dev server' complete -c bun \ diff --git a/completions/bun.zsh b/completions/bun.zsh index 57a56c6c88..4ea34a349a 100644 --- a/completions/bun.zsh +++ b/completions/bun.zsh @@ -409,6 +409,7 @@ _bun() { '--version[Show version and exit]' \ '-V[Show version and exit]' \ '--cwd[Change directory]:cwd' \ + '--hot[Enable hot reloading]' \ '--help[Show command help]' \ '-h[Show command help]' \ '--all[]' &&