Compare commits

..

2 Commits
v1.2.4 ... up

Author SHA1 Message Date
andy.boot
3d95773a99 Fix: windows build missed in nu_ansi_term upgrade 2026-01-08 20:01:29 +00:00
andy.boot
2208ee517f deps: update dependencies 2026-01-08 19:36:48 +00:00
6 changed files with 5 additions and 17 deletions

2
Cargo.lock generated
View File

@@ -296,7 +296,7 @@ dependencies = [
[[package]]
name = "du-dust"
version = "1.2.4"
version = "1.2.3"
dependencies = [
"assert_cmd",
"chrono",

View File

@@ -1,7 +1,7 @@
[package]
name = "du-dust"
description = "A more intuitive version of du"
version = "1.2.4"
version = "1.2.3"
authors = ["bootandy <bootandy@gmail.com>", "nebkor <code@ardent.nebcorp.com>"]
edition = "2024"
readme = "README.md"

View File

@@ -28,6 +28,3 @@ ignore-hidden=true
output-format="si"
number-of-lines=5
# To keep the .git directory collapsed
collapse=[".git"]

View File

@@ -1,6 +1,6 @@
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.TH Dust 1 "Dust 1.2.4"
.TH Dust 1 "Dust 1.2.3"
.SH NAME
Dust \- Like du but more intuitive
.SH SYNOPSIS
@@ -170,4 +170,4 @@ Print version
[\fIPATH\fR]
Input files or directories
.SH VERSION
v1.2.4
v1.2.3

View File

@@ -38,7 +38,6 @@ pub struct Config {
pub files0_from: Option<String>,
pub number_of_lines: Option<usize>,
pub files_from: Option<String>,
pub collapse: Option<Vec<String>>,
}
impl Config {
@@ -178,14 +177,6 @@ impl Config {
pub fn get_changed_time_operator(&self, options: &Cli) -> Option<(Operator, i64)> {
get_filter_time_operator(options.ctime.as_ref(), get_current_date_epoch_seconds())
}
pub fn get_collapse(&self, options: &Cli) -> Option<Vec<String>> {
if self.collapse.is_none() {
options.collapse.clone()
} else {
self.collapse.clone()
}
}
}
fn get_current_date_epoch_seconds() -> i64 {

View File

@@ -224,7 +224,7 @@ fn main() {
indicator.spawn(output_format.clone())
}
let keep_collapsed: HashSet<PathBuf> = match config.get_collapse(&options) {
let keep_collapsed: HashSet<PathBuf> = match options.collapse {
Some(ref collapse) => {
let mut combined_dirs = HashSet::new();
for collapse_dir in collapse {