mirror of
https://github.com/nushell/nushell
synced 2024-12-28 14:03:09 +00:00
add a debug printing of the example command results
This commit is contained in:
parent
e89866bedb
commit
2ea8087fbf
1 changed files with 7 additions and 0 deletions
|
@ -209,6 +209,13 @@ fn get_documentation(
|
|||
} else {
|
||||
let _ = write!(long_desc, "\n > {}\n", example.example);
|
||||
}
|
||||
|
||||
match &example.result {
|
||||
Some(result) => {
|
||||
let _ = write!(long_desc, " {:?}\n", result);
|
||||
}
|
||||
None => {}
|
||||
}
|
||||
}
|
||||
|
||||
long_desc.push('\n');
|
||||
|
|
Loading…
Reference in a new issue