Compare commits

..

4 Commits

Author SHA1 Message Date
andy.boot
2513304146 build: Attempt to add deb musl build.
I have no idea if this will work
2026-01-08 20:16:28 +00:00
andy.boot
d26971f869 Fix: windows build missed in nu_ansi_term upgrade 2026-01-08 20:14:56 +00:00
andy.boot
28018bc8c2 deps: update dependencies 2026-01-08 20:14:56 +00:00
andy.boot
37dd671e5e build: Attempt to add deb musl build.
I have no idea if this will work
2026-01-08 20:03:42 +00:00
4 changed files with 18 additions and 1 deletions

View File

@@ -126,6 +126,11 @@ jobs:
target: x86_64-unknown-linux-musl,
use-cross: use-cross,
}
- {
os: deb-latest,
target: x86_64-unknown-linux-musl,
use-cross: use-cross,
}
- { os: macos-latest, target: x86_64-apple-darwin }
- { os: windows-latest, target: i686-pc-windows-gnu }
- { os: windows-latest, target: i686-pc-windows-msvc }

View File

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

View File

@@ -38,6 +38,7 @@ 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 {
@@ -177,6 +178,14 @@ 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 options.collapse {
let keep_collapsed: HashSet<PathBuf> = match config.get_collapse(&options) {
Some(ref collapse) => {
let mut combined_dirs = HashSet::new();
for collapse_dir in collapse {