nushell/crates/nu-protocol/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
..
ast Add bit operator: bit-xor (#5940) 2022-07-03 06:45:20 -05:00
engine Move input/output type from Command to Signature (#5880) 2022-06-26 09:23:56 +12:00
value Add bit operator: bit-xor (#5940) 2022-07-03 06:45:20 -05:00
cli_error.rs Expand Hooks Functionality (#5982) 2022-07-10 13:45:46 +03:00
config.rs SQLite History MVP with timestamp, duration, working directory, exit status metadata (#5721) 2022-06-14 22:53:33 +02:00
example.rs Start support for commandline args to nu itself (#851) 2022-01-27 01:42:39 +11:00
exportable.rs Add export alias and export extern (#4878) 2022-03-20 07:58:01 +13:00
id.rs Overlays (#5375) 2022-05-08 07:39:22 +12:00
lib.rs Overlays (#5375) 2022-05-08 07:39:22 +12:00
module.rs Overlays (#5375) 2022-05-08 07:39:22 +12:00
pipeline_data.rs add -e flag to print, to print the value to stderr (#5935) 2022-07-02 09:54:49 -05:00
shell_error.rs adds better error for failed string-to-duration conversions (#5977) 2022-07-07 05:54:38 -05:00
signature.rs add bytes len (#5945) 2022-07-04 05:51:07 -05:00
span.rs Remove 'empty' block support reminders, for now. (#5214) 2022-04-30 22:32:30 -05:00
syntax_shape.rs Better error handling using do (#5890) 2022-06-29 20:01:34 -05:00
ty.rs Remove dfr from dataframe commands (#5760) 2022-06-12 14:18:00 -05:00
variable.rs Add support for var decl spans (#4787) 2022-03-09 04:42:19 -05:00