Skip to content

Commit 753c5a0

Browse files
author
sandesh.tamang
committed
fix: child process blocker issue fixes
1 parent 09cb42e commit 753c5a0

5 files changed

Lines changed: 18 additions & 8 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "e2s"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
edition = "2021"
55

66
# Github Repo

src/app/aws/ec2.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::{io, process::Command};
1+
use std::{io, process::{Stdio, Command}};
22

33
use aws_config::{
44
meta::region::RegionProviderChain, profile::ProfileFileRegionProvider, BehaviorVersion, Region,
@@ -643,6 +643,11 @@ impl App {
643643
}
644644
};
645645

646+
command
647+
.stdin(Stdio::null())
648+
.stdout(Stdio::null())
649+
.stderr(Stdio::null());
650+
646651
let _ = command.spawn().map(|_| ()).map_err(|e| {
647652
eprintln!("Failed to open terminal '{}': {}", emulator, e);
648653
e

src/ui/ui_block/help.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ pub fn render(_app: &mut App, f: &mut Frame) {
3030
Line::from(vec![Span::styled("[ General ]", title_style)]),
3131
Line::from(vec![
3232
Span::styled(" Ctrl-c: ", key_style),
33-
Span::styled("quit", desc_style),
33+
Span::styled("Quit", desc_style),
3434
]),
3535
Line::from(vec![
3636
Span::styled(" j k Down Up: ", key_style),
37-
Span::styled("scroll upward/downward", desc_style),
37+
Span::styled("Scroll upward/downward", desc_style),
3838
]),
3939
Line::from(vec![
4040
Span::styled("h l Left Right: ", key_style),
@@ -46,15 +46,15 @@ pub fn render(_app: &mut App, f: &mut Frame) {
4646
]),
4747
Line::from(vec![
4848
Span::styled(" [/]: ", key_style),
49-
Span::styled("enable search mode", desc_style),
49+
Span::styled("Enable search mode", desc_style),
5050
]),
5151
Line::from(vec![
52-
Span::styled(" s: ", key_style),
52+
Span::styled(" s/Enter: ", key_style),
5353
Span::styled("SSH into selected", desc_style),
5454
]),
5555
Line::from(vec![
5656
Span::styled(" p: ", key_style),
57-
Span::styled("Toggle Private/Public IP", desc_style),
57+
Span::styled("Toggle Private/Public/SSM ", desc_style),
5858
]),
5959
];
6060

src/update.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ pub async fn update(app: &mut App, key_event: KeyEvent, tui: &mut Tui) {
2828
{
2929
app.quit();
3030
}
31+
KeyCode::Char('q') | KeyCode::Char('Q') | KeyCode::Esc => {
32+
if app.show_help {
33+
app.show_help = !app.show_help
34+
}
35+
}
3136
KeyCode::Char('r') | KeyCode::Char('R') => {
3237
app.loading = true;
3338
app.fetch_ec2_data().await;

0 commit comments

Comments
 (0)