Skip to content

Commit

Permalink
Version 1.9.2
Browse files Browse the repository at this point in the history
* Bump dependencies
  • Loading branch information
acuteenvy committed Apr 29, 2024
1 parent 9abe507 commit 277c496
Show file tree
Hide file tree
Showing 4 changed files with 71 additions and 69 deletions.
125 changes: 66 additions & 59 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tlrc"
version = "1.9.1"
version = "1.9.2"
description = "Official tldr client written in Rust"
categories = ["command-line-utilities"]
homepage = "https://github.com/tldr-pages/tlrc"
Expand All @@ -23,9 +23,9 @@ clap = { version = "4.5.4", features = ["derive"] }
dirs = "5.0.1"
once_cell = "1.19.0"
ring = "0.17.8"
serde = { version = "1.0.197", features = ["derive"] }
serde = { version = "1.0.199", features = ["derive"] }
toml = "0.8.12"
ureq = { version = "2.9.6", default-features = false, features = ["tls"] }
ureq = { version = "2.9.7", default-features = false, features = ["tls"] }
yansi = "1.0.1"
zip = { version = "0.6.6", default-features = false, features = ["deflate"] }

Expand Down
7 changes: 1 addition & 6 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,13 @@ pub fn get_languages_from_env(out_vec: &mut Vec<String>) {

/// Initialize color outputting.
pub fn init_color(color_mode: ColorChoice) {
#[cfg(target_os = "windows")]
let color_support = Paint::enable_windows_ascii();

match color_mode {
ColorChoice::Always => {}
ColorChoice::Never => yansi::disable(),
ColorChoice::Auto => {
#[cfg(not(target_os = "windows"))]
let color_support = true;
let no_color = env::var_os("NO_COLOR").is_some_and(|x| !x.is_empty());

if !color_support || no_color || !io::stdout().is_terminal() {
if no_color || !io::stdout().is_terminal() {
yansi::disable();
}
}
Expand Down
2 changes: 1 addition & 1 deletion tldr.1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH "TLRC" "1" "2024-03-28" "tlrc 1.9.1" "tlrc manual"
.TH "TLRC" "1" "2024-04-29" "tlrc 1.9.2" "tlrc manual"
.nh
.ad l
.SH NAME
Expand Down

0 comments on commit 277c496

Please sign in to comment.