Cleanup
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Austen Adler 2022-12-27 20:09:47 -05:00
parent abc4367cdd
commit f5e9fe8584
2 changed files with 7 additions and 2 deletions

View File

@ -66,6 +66,7 @@ fn run_inner(command_request: &CommandRequest) -> Result<CommandResult> {
let mut command = Command::new(&request.command);
command
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.args(&request.hidden_options);
@ -84,8 +85,6 @@ fn run_inner(command_request: &CommandRequest) -> Result<CommandResult> {
command.arg(&request.cmdline);
}
command.stdin(Stdio::piped());
std::mem::drop(request);
command.spawn()

View File

@ -86,6 +86,12 @@ pub fn draw<B: Backend>(f: &mut Frame<B>, app: &App) {
// Render the output in the outpout region
if let Some(ref command_result) = command_options.command_result {
ui_output(f, chunks[1], &mut render_states, command_result);
} else {
f.render_widget(
Block::default().title("Output")
.borders(Borders::ALL),
chunks[1]
)
}
f.set_cursor(