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

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