Switch from is-terminal crate to std::io::IsTerminal

This commit is contained in:
tottoto 2023-07-17 06:29:37 +09:00
parent c3764e821b
commit 5d08566c16
3 changed files with 1 additions and 4 deletions

1
Cargo.lock generated
View file

@ -183,7 +183,6 @@ dependencies = [
"bat",
"cargo-subcommand-metadata",
"clap",
"is-terminal",
"prettyplease",
"proc-macro2",
"quote",

View file

@ -20,7 +20,6 @@ prettyplease = []
bat = { version = "0.23", default-features = false, features = ["paging", "regex-fancy"] }
cargo-subcommand-metadata = "0.1"
clap = { version = "4", features = ["deprecated", "derive"] }
is-terminal = "0.4"
prettyplease = { version = "0.2.9", features = ["verbatim"] }
proc-macro2 = "1.0.63"
quote = { version = "1.0", default-features = false }

View file

@ -31,12 +31,11 @@ use crate::opts::{Coloring, Expand, Subcommand};
use crate::unparse::unparse_maximal;
use bat::{PagingMode, PrettyPrinter};
use clap::{Parser, ValueEnum};
use is_terminal::IsTerminal;
use quote::quote;
use std::env;
use std::ffi::OsString;
use std::fs;
use std::io::{self, BufRead, Write};
use std::io::{self, BufRead, IsTerminal, Write};
use std::panic::{self, PanicInfo, UnwindSafe};
use std::path::{Path, PathBuf};
use std::process::{self, Command, Stdio};