mirror of
https://github.com/nushell/nushell
synced 2024-12-30 15:03:25 +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 {
|
} 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 a new issue