nushell/tests
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
..
assets/nu_json Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
fixtures nu-cli/completions: add custom completion test (#5543) 2022-05-14 15:09:41 -05:00
hooks Expand Hooks Functionality (#5982) 2022-07-10 13:45:46 +03:00
nu_repl Expand Hooks Functionality (#5982) 2022-07-10 13:45:46 +03:00
overlays Add 'overlay new' command (#5647) 2022-05-26 17:47:04 +03:00
parsing Add more multiline pipeline forms (#4740) 2022-03-05 08:20:13 -05:00
path Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
plugins Remove old nushell/merge engine-q 2022-02-07 14:54:06 -05:00
scope Fix reporting of which and $nu.scope (#4836) 2022-03-13 21:32:46 +02:00
shell fix exit code (#5835) 2022-06-20 09:05:11 -05:00
main.rs Expand Hooks Functionality (#5982) 2022-07-10 13:45:46 +03:00