Move eval_hook to nu-cmd-base (#10146)

I moved hook to *nu_cmd_base* instead of *nu_cli* because it will enable
other developers to continue to use hook even if they decide to write
their on cli or NOT depend on nu-cli

Then they will still have the hook functionality because they can
include nu-cmd-base
This commit is contained in:
Michael Angerman
2023-08-29 14:46:50 -07:00
committed by GitHub
parent 7d3312e96e
commit 3f2c76df28
10 changed files with 12 additions and 9 deletions

View File

@ -1,4 +1,4 @@
use nu_command::hook::{eval_env_change_hook, eval_hook};
use nu_cmd_base::hook::{eval_env_change_hook, eval_hook};
use nu_engine::eval_block;
use nu_parser::parse;
use nu_protocol::engine::{EngineState, Stack, StateWorkingSet};