nushell/crates/nu-cli/src
Jakub Žádník 3676a8a48d
Expand Hooks Functionality (#5982)
* (WIP) Initial messy support for hooks as strings

* Cleanup after running condition & hook code

Also, remove prints

* Move env hooks eval into its own function

* Add env change hooks to simulator

* Fix hooks simulator not running env hooks properly

* Add missing hooks test file

* Expand hooks tests

* Add blocks as env hooks; Preserve hook environment

* Add full eval to pre prompt/exec hooks; Fix panic

* Rename env change hook back to orig. name

* Print err on test failure; Add list of hooks test

* Consolidate condition block; Fix panic; Misc

* CHange test to use real file

* Remove unused stuff

* Fix potential panics; Clean up errors

* Remove commented unused code

* Clippy: Fix extra references

* Add back support for old-style hooks

* Reorder functions; Fmt

* Fix test on Windows

* Add more test cases; Simplify some error reporting

* Add more tests for setting correct before/after

* Move pre_prompt hook to the beginning

Since we don't have a prompt or blocking on user input, all hooks just
follow after each other.
2022-07-10 13:45:46 +03:00
..
completions cleanup $config as a built-in (#5852) 2022-06-22 13:13:03 -05:00
menus Remove dfr from dataframe commands (#5760) 2022-06-12 14:18:00 -05:00
commands.rs fix exit code (#5835) 2022-06-20 09:05:11 -05:00
config_files.rs SQLite History MVP with timestamp, duration, working directory, exit status metadata (#5721) 2022-06-14 22:53:33 +02:00
eval_file.rs fix exit code (#5835) 2022-06-20 09:05:11 -05:00
lib.rs Expand Hooks Functionality (#5982) 2022-07-10 13:45:46 +03:00
nu_highlight.rs feat: add search terms to category of strings (#5723) 2022-06-06 08:47:09 -05:00
print.rs add -e flag to print, to print the value to stderr (#5935) 2022-07-02 09:54:49 -05:00
prompt.rs adjust where prompt markers go (#5491) 2022-05-10 16:33:18 -05:00
prompt_update.rs adjust where prompt markers go (#5491) 2022-05-10 16:33:18 -05:00
reedline_config.rs update reedline config based on recent reedline changes (#5845) 2022-06-21 12:22:11 -05:00
repl.rs Expand Hooks Functionality (#5982) 2022-07-10 13:45:46 +03:00
syntax_highlight.rs nu-cli: directory syntax shape + completions (#5299) 2022-04-22 15:18:51 -05:00
util.rs Expand Hooks Functionality (#5982) 2022-07-10 13:45:46 +03:00
validation.rs Add an alias denylist for expansions (#4871) 2022-03-19 08:03:57 +13:00