Make run_block public (#2772)

This commit is contained in:
Maximilian Roos 2020-12-02 02:00:30 -08:00 committed by GitHub
parent f19a801022
commit 12bc92df35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ use nu_protocol::hir::{Block, ClassifiedCommand, Commands};
use nu_protocol::{ReturnSuccess, Scope, UntaggedValue, Value};
use std::sync::atomic::Ordering;
pub(crate) async fn run_block(
pub async fn run_block(
block: &Block,
ctx: &mut EvaluationContext,
mut input: InputStream,

View File

@ -27,7 +27,7 @@ pub struct EvaluationContext {
}
impl EvaluationContext {
pub(crate) fn registry(&self) -> &CommandRegistry {
pub fn registry(&self) -> &CommandRegistry {
&self.registry
}

View File

@ -47,6 +47,7 @@ pub use crate::cli::{
run_pipeline_standalone, run_vec_of_pipelines, LineResult,
};
pub use crate::command_registry::CommandRegistry;
pub use crate::commands::classified::block::run_block;
pub use crate::commands::command::{
whole_stream_command, CommandArgs, EvaluatedWholeStreamCommandArgs, Example, WholeStreamCommand,
};