aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-12 19:07:11 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-12 19:07:11 -0700
commit58fe024aea692035fabfa989b8f1a475f30abc27 (patch)
tree0d2bb55c5e221d85a4cc382710e624def1b7aa00
parent6205cf3fe4c461c03a2584622a09a6af5e577c5d (diff)
downloadbun-58fe024aea692035fabfa989b8f1a475f30abc27.tar.gz
bun-58fe024aea692035fabfa989b8f1a475f30abc27.tar.zst
bun-58fe024aea692035fabfa989b8f1a475f30abc27.zip
Add --hot to completions
-rw-r--r--completions/bun.fish5
-rw-r--r--completions/bun.zsh1
2 files changed, 5 insertions, 1 deletions
diff --git a/completions/bun.fish b/completions/bun.fish
index 74ac009d9..57c42cc79 100644
--- a/completions/bun.fish
+++ b/completions/bun.fish
@@ -75,7 +75,7 @@ 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 \
@@ -83,6 +83,9 @@ 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 -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 \
-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 __bun_command_count 1 and __fish_use_subcommand" -a 'create' -f -d 'Create a new project from a template'
diff --git a/completions/bun.zsh b/completions/bun.zsh
index 57a56c6c8..4ea34a349 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[]' &&