Skip to content

Commit 22b64f6

Browse files
authored
Merge pull request #1007 from SteveL-MSFT/sshd-crate
Remove use of atty crate
2 parents 197064c + 012d5e3 commit 22b64f6

File tree

4 files changed

+8
-126
lines changed

4 files changed

+8
-126
lines changed

archive/registry/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ lto = true
1414
lto = true
1515

1616
[dependencies]
17-
atty = { version = "0.2" }
1817
clap = { version = "4.1", features = ["derive"] }
19-
crossterm = { version = "0.26" }
18+
crossterm = { version = "0.29" }
2019
ntreg = { path = "../ntreg" }
2120
ntstatuserror = { path = "../ntstatuserror" }
2221
schemars = { version = "1.0" }

archive/registry/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ use crossterm::event;
77
use std::env;
88

99
use args::Arguments;
10-
use atty::Stream;
1110
use clap::Parser;
11+
use crossterm::tty::{is_tty, Stream};
1212
use schemars::schema_for;
1313
use std::{io::{self, Read}, process::exit};
1414

@@ -32,7 +32,7 @@ fn main() {
3232
check_debug();
3333

3434
let args = Arguments::parse();
35-
let input: Option<String> = if atty::is(Stream::Stdin) {
35+
let input: Option<String> = if is_tty(Stream::Stdin) {
3636
None
3737
} else {
3838
let mut buffer: Vec<u8> = Vec::new();

sshdconfig/Cargo.lock

Lines changed: 4 additions & 120 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sshdconfig/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ lto = true
1414
lto = true
1515

1616
[dependencies]
17-
atty = { version = "0.2" }
1817
chrono = { version = "0.4" }
1918
clap = { version = "4.5", features = ["derive"] }
20-
crossterm = { version = "0.27" }
19+
crossterm = { version = "0.29" }
2120
rust-i18n = { version = "3.1" }
2221
schemars = "1.0"
2322
serde = { version = "1.0", features = ["derive"] }

0 commit comments

Comments
 (0)