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

@ -34,13 +34,13 @@ impl Command for Date {
fn date(
engine_state: &EngineState,
_stack: &mut Stack,
stack: &mut Stack,
call: &Call,
) -> Result<PipelineData, ShellError> {
let head = call.head;
Ok(Value::String {
val: get_full_help(&Date.signature(), &Date.examples(), engine_state),
val: get_full_help(&Date.signature(), &Date.examples(), engine_state, stack),
span: head,
}
.into_pipeline_data())