Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Hide nushell's built-in echo command
Browse files Browse the repository at this point in the history
  • Loading branch information
cassaundra committed May 1, 2024
1 parent 9e7d0e2 commit 96133cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/quake_engine/src/nu/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ pub fn create_engine_state(state: Arc<RwLock<State>>) -> EngineState {

let mut working_set = StateWorkingSet::new(&engine_state);

// remove echo command as its behavior is confusing for users not familiar with
// nushell evaluation
working_set.hide_decl(b"echo");

macro_rules! bind_global_variable {
($name:expr, $id:expr, $type:expr) => {
let var_id = working_set.add_variable($name.into(), Span::unknown(), $type, false);
Expand Down

0 comments on commit 96133cf

Please sign in to comment.