mirror of
https://github.com/nushell/nushell.git
synced 2025-05-20 18:00:49 +02:00
add a debug printing of the example command results
This commit is contained in:
parent
e89866bedb
commit
2ea8087fbf
@ -209,6 +209,13 @@ fn get_documentation(
|
|||||||
} else {
|
} else {
|
||||||
let _ = write!(long_desc, "\n > {}\n", example.example);
|
let _ = write!(long_desc, "\n > {}\n", example.example);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
match &example.result {
|
||||||
|
Some(result) => {
|
||||||
|
let _ = write!(long_desc, " {:?}\n", result);
|
||||||
|
}
|
||||||
|
None => {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
long_desc.push('\n');
|
long_desc.push('\n');
|
||||||
|
Loading…
Reference in New Issue
Block a user