mirror of
https://github.com/nushell/nushell
synced 2025-01-10 04:09:09 +00:00
881c3495c1
# Description We previously simply searched all commands in the working set. As our deprecated/removed subcommands are documented by stub commands that don't do anything apart from providing a message, they were still included. With this change we check the `Signature.category` to not be `Category::Deprecated`. ## Note on performance Making this change will exercise `Command.signature()` more frequently! As the rust-implemented commands include their builders here this probably will cause a number of extra allocations. There is actually no valid reason why the commands should construct a new `Signature` for each call to `Command.signature()`. This will introduce some overhead to generate the completions for commands. # User-Facing Changes Example: `str <TAB>` ![grafik](https://github.com/nushell/nushell/assets/15833959/4d5ec5fe-aa93-45af-aa60-3854a20fcb04) |
||
---|---|---|
.. | ||
commands | ||
completions | ||
menus | ||
config_files.rs | ||
eval_cmds.rs | ||
eval_file.rs | ||
lib.rs | ||
nu_highlight.rs | ||
print.rs | ||
prompt.rs | ||
prompt_update.rs | ||
reedline_config.rs | ||
repl.rs | ||
syntax_highlight.rs | ||
util.rs | ||
validation.rs |