1106 Commits
Author SHA1 Message Date
renovate[bot] 77b6743fb6 chore(deps): update rust crate uutests to 0.11.0 2026-09-01 14:10:19 +02:00
renovate[bot] 6446b04ac4 chore(deps): update rust crate dns-lookup to v4 2026-08-28 08:07:55 +02:00
renovate[bot] b6674bf863 chore(deps): update rust crate uuid to v1.26.0 2026-08-27 08:05:27 +02:00
renovate[bot] 23de00b8ad chore(deps): update rust crate uuid to v1.25.0 2026-08-22 15:27:55 +02:00
mmcandmmc 100ab214c0 lscpu: accept -1 as physical package id (#622)
The kernel falls back to -1 in
/sys/devices/system/cpu/cpuN/topology/physical_package_id when the
architecture does not expose physical package information:
https://www.kernel.org/doc/html/latest/admin-guide/cputopology.html

Issue #495 reports exactly this on ppc64, where parsing the value as
usize made lscpu panic. Parse it as i64 instead, so unknown ids
collapse into a single socket bucket, matching the Socket(s): 1 that
util-linux lscpu is observed to report there.

Fixes #495

Co-authored-by: mmc <codeberg.wilder850@simplelogin.com>
2026-08-18 13:06:30 +02:00
MsfPablo 22cf93461a last: add [[bin]] so the binary is named last (#631) 2026-08-18 13:06:05 +02:00
renovate[bot] 05c650e5d7 chore(deps): update rust crate uuid to v1.24.1 2026-08-15 07:03:44 +02:00
renovate[bot] fe2ec1dac3 chore(deps): update rust crate rangemap to v1.8.0 2026-08-14 08:05:42 +02:00
mmcandmmc 51d527f974 chcpu: report each error only once (#617)
* chcpu: report each error only once

Every failure was printed twice: `CpuList::run` reported it itself with a raw
`eprintln!`, then also returned it, so `uucore` printed it again with the
`chcpu: ` prefix. The unprefixed copy came first, which is the one users saw.

Reporting each per-CPU failure with `uucore::show!` keeps the diagnostic for
every element of a CPU list, gives all of them the program-name prefix that
was previously only on the duplicate, and sets the exit code rather than
returning an error - the pattern uucore documents for non-fatal errors when
applying an operation to many items. Exit codes are untouched: 1 when nothing
succeeded, 64 for partial success.

Adds the first tests for this utility, covering the error paths. They need no
privileges and change no CPU state: an absent CPU index is rejected before
anything is written, and enabling an already-enabled CPU only prints.

* chcpu: cover argument parsing in tests

These reach only clap, never sysfs, so they also guard the option surface on
the platforms where the utility itself is unimplemented.

---------

Co-authored-by: mmc <codeberg.wilder850@simplelogin.com>
2026-08-13 08:57:42 +02:00
Malhar Vora f96693e3fd Add --task argument with tests (#609)
Signed-off-by: Malhar Vora <mlvora.2010@gmail.com>
2026-08-13 08:57:03 +02:00
renovate[bot] 113859e5da chore(deps): update rust crate clap_mangen to v0.3.3 2026-08-13 08:09:32 +02:00
renovate[bot] a942f2c1ee chore(deps): update rust crate ctor to v1.0.13 2026-08-10 08:14:58 +02:00
renovate[bot] 52dcb506db chore(deps): update rust crate thiserror to v2.0.20 2026-08-08 13:05:49 +02:00
renovate[bot] 5f5b8bbbbf chore(deps): update rust crate clap_complete to v4.6.9 2026-08-07 10:25:35 +02:00
renovate[bot] b2b324db85 chore(deps): update rust crate clap_mangen to v0.3.2 2026-08-07 09:47:01 +02:00
renovate[bot] ecffe4d39a chore(deps): update rust crate clap_mangen to v0.3.1 2026-08-06 08:31:41 +02:00
renovate[bot] 710ceeb490 chore(deps): update rust crate uutests to 0.10.0 2026-08-06 08:13:09 +02:00
renovate[bot] 7476fce0f5 chore(deps): update rust crate clap to v4.6.5 2026-08-01 07:10:49 +02:00
renovate[bot] 4eeef13da5 chore(deps): update rust crate ctor to v1.0.12 2026-07-30 07:59:25 +02:00
renovate[bot] 6ed735a09d chore(deps): update rust crate clap_complete to v4.6.8 2026-07-28 07:59:31 +02:00
renovate[bot] 93ab88df5c chore(deps): update rust crate ctor to v1.0.11 2026-07-27 08:02:24 +02:00
Malhar Vora 4bd24d4a72 Add --type option (#607)
Signed-off-by: Malhar Vora <mlvora.2010@gmail.com>
2026-07-22 19:30:13 +02:00
renovate[bot] 526079529b chore(deps): update rust crate ctor to v1.0.10 2026-07-22 08:22:06 +02:00
renovate[bot] d76126ba50 chore(deps): update rust crate clap to v4.6.4 2026-07-22 08:06:43 +02:00
renovate[bot] 6270dadcd0 chore(deps): update rust crate libc to v0.2.189 2026-07-22 07:58:58 +02:00