Document reason for stack.start_capture()
h/t @IanManske
This commit is contained in:
parent
38a75a263e
commit
dd15b3001f
|
@ -14,7 +14,12 @@ pub fn get_full_help(
|
||||||
engine_state: &EngineState,
|
engine_state: &EngineState,
|
||||||
stack: &mut Stack,
|
stack: &mut Stack,
|
||||||
) -> String {
|
) -> String {
|
||||||
|
// Precautionary step to capture any command output generated during this operation. We
|
||||||
|
// internally call several commands (`table`, `ansi`, `nu-highlight`) and get their
|
||||||
|
// `PipelineData` using this `Stack`, any other output should not be redirected like the main
|
||||||
|
// execution.
|
||||||
let stack = &mut stack.start_capture();
|
let stack = &mut stack.start_capture();
|
||||||
|
|
||||||
let signature = command.signature().update_from_command(command);
|
let signature = command.signature().update_from_command(command);
|
||||||
|
|
||||||
get_documentation(
|
get_documentation(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user