Skip to content

Commit 02e64f9

Browse files
author
Jan Diederich
committed
OWO stdin removed
1 parent fd992d1 commit 02e64f9

File tree

3 files changed

+2
-13
lines changed

3 files changed

+2
-13
lines changed

src/bin/commands/containers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ pub fn create_persistent_volume(
327327
docker.arg("--rm");
328328
docker.args(["-v", &format!("{}:{}", volume_id, mount_prefix)]);
329329
docker.arg("-d");
330-
let is_tty = /* io::Stdin::is_atty() && */ io::Stdout::is_atty() && io::Stderr::is_atty();
330+
let is_tty = io::Stdout::is_atty() && io::Stderr::is_atty();
331331
if is_tty {
332332
docker.arg("-t");
333333
}

src/docker/local.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ pub(crate) fn run(
136136
]);
137137
}
138138

139-
if
140-
/* io::Stdin::is_atty() && */
141-
io::Stdout::is_atty() && io::Stderr::is_atty() {
139+
if io::Stdout::is_atty() && io::Stderr::is_atty() {
142140
docker.arg("-t");
143141
}
144142

src/shell.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -461,15 +461,6 @@ pub trait Stream {
461461
}
462462
}
463463

464-
// impl Stream for io::Stdin {
465-
// type TTY = io::Stdin;
466-
// const OWO: owo_colors::Stream = owo_colors::Stream::Stdin;
467-
//
468-
// fn is_atty() -> bool {
469-
// io::stdin().is_terminal()
470-
// }
471-
// }
472-
473464
impl Stream for io::Stdout {
474465
type TTY = io::Stdout;
475466
const OWO: owo_colors::Stream = owo_colors::Stream::Stdout;

0 commit comments

Comments
 (0)