mirror of
https://github.com/nushell/nushell.git
synced 2025-07-09 02:48:17 +02:00
Simplify down to one type of context (#3379)
* Simplify down to one type of context * More simplification
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
use crate::prelude::*;
|
||||
use nu_engine::basic_evaluation_context;
|
||||
use nu_engine::whole_stream_command;
|
||||
use std::error::Error;
|
||||
|
||||
pub fn create_default_context(interactive: bool) -> Result<EvaluationContext, Box<dyn Error>> {
|
||||
let context = basic_evaluation_context()?;
|
||||
let context = EvaluationContext::basic();
|
||||
|
||||
{
|
||||
use crate::commands::*;
|
||||
|
Reference in New Issue
Block a user