Highlight help tutor (#838)

* WIP

* Syntax highlight help, add tutor
This commit is contained in:
JT
2022-01-24 10:05:19 -05:00
committed by GitHub
parent 525ed7653f
commit 3d0b1ef1ce
20 changed files with 640 additions and 34 deletions

View File

@ -24,7 +24,7 @@ impl Command for SplitCommand {
fn run(
&self,
engine_state: &EngineState,
_stack: &mut Stack,
stack: &mut Stack,
call: &Call,
_input: PipelineData,
) -> Result<nu_protocol::PipelineData, nu_protocol::ShellError> {
@ -33,6 +33,7 @@ impl Command for SplitCommand {
&SplitCommand.signature(),
&SplitCommand.examples(),
engine_state,
stack,
),
span: call.head,
}

View File

@ -24,12 +24,12 @@ impl Command for Str {
fn run(
&self,
engine_state: &EngineState,
_stack: &mut Stack,
stack: &mut Stack,
call: &Call,
_input: PipelineData,
) -> Result<nu_protocol::PipelineData, nu_protocol::ShellError> {
Ok(Value::String {
val: get_full_help(&Str.signature(), &Str.examples(), engine_state),
val: get_full_help(&Str.signature(), &Str.examples(), engine_state, stack),
span: call.head,
}
.into_pipeline_data())