Commit Graph

175 Commits

Author SHA1 Message Date
renovate[bot]
07c7f43787 fix(deps): update rust crate parse_datetime to 0.10.0 2025-05-26 23:15:18 +00:00
Daniel Hofstetter
184b2c8f1e mesg: adapt to API changes in nix 2025-05-23 10:52:10 +02:00
Sylvestre Ledru
cb0f551a76 Merge pull request #305 from cakebaker/mcookie_dont_use_option_for_max_size
mcookie: don't use `Option` for `max_size`
2025-05-10 09:14:35 +02:00
Daniel Hofstetter
4d4daf820c mcookie: don't use Option for max_size 2025-05-10 07:51:30 +02:00
Lionel Mendes
55c8ee013b last: fix some hostnames are not shown properly with --hostname option issue 212 (#246)
* last: fix not all hostnames are shown in the last column with --hostlast option

* last: fix not all hostnames are shown in the last column with --hostlast option

* Added test case related to the hostlast option in last command.

* Change binary input fixture name for last command and Fix format source code.

* feat: add macOS platform & update tests for compatibility

* fix: correct formatting in platform and test files for macOS compatibility

* fix: format

* fix: correct variable name and improve test output handling
2025-05-08 17:32:25 +02:00
Reagan Bohan
1dcb5524e2 Implement uuidgen
Implement uuidgen as a wrapper over the `uuid` crate.
2025-05-02 11:53:04 +00:00
renovate[bot]
33f104dc41 fix(deps): update rust crate parse_datetime to 0.9.0 2025-04-25 12:31:04 +00:00
Daniel Hofstetter
437e95d991 lslocks: add missing newline 2025-04-22 11:53:51 +02:00
Koutheir Attouchi
c9df39b261 Implemented lslocks. 2025-04-21 21:04:12 -04:00
Alexandra
a402b5e3a5 mcookie: fix max size option 2025-04-08 20:10:21 +02:00
chalice19
7254ab6238 mcookie: generate cookie even if specified file doesn't exist (#285)
* mcookie: don't quit if specified file doesn't exist

* mcookie: add test

* minor fixes

* minor fix

* formatted

---------

Co-authored-by: Alexandra <aspasparagus@gmail.com>
2025-04-08 15:05:17 +02:00
Quang
f24471694c mcookie: read from stdin if file is - (#279)
* read from stdin

* Update mcookie.rs

* test

* fmt

* Update mcookie.rs

* Update mcookie.rs
2025-04-05 17:03:13 +02:00
Sylvestre Ledru
fac8a0b9e3 Merge pull request #253 from mdcssw/main
Implemented `lsipc`
2025-04-01 08:28:00 +02:00
Quang
0113e301e8 mcookie - fix providing /dev/random or /dev/urandom as file leads to infinite loop (#274)
* Update mcookie.rs

* edit doc

* fmt

* fix for unix and non-unix build

* add test case

* refactor

* fmt

* fix
2025-03-31 09:54:28 +02:00
Quang
36b3af044c mcookie: add support for human-readable sizes with -m option (#268)
* Create size.rs

* parse max size from human-readable strings

* tests for human-readable strings

* fmt

* fix failed tests and edge cases

* fix fmt

* cpr & license

* use usimpleerror

* fmt
2025-03-31 09:26:49 +02:00
Koutheir Attouchi
9bb2bb369e Implemented lsipc. 2025-03-28 17:13:27 -04:00
Koutheir Attouchi
31795f2729 Implemented chcpu. 2025-03-20 11:21:51 -04:00
Koutheir Attouchi
b66945dee8 Configure command line parsing. 2025-03-20 11:21:13 -04:00
alxndrv
a7e9f39c40 Implement mcookie 2025-03-18 19:50:06 +02:00
Sylvestre Ledru
bf18cb6f62 Merge pull request #252 from cakebaker/add_renice
Add `renice`
2025-03-13 11:44:36 +01:00
Daniel Hofstetter
e9d1600bc4 Add renice
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-03-12 10:05:26 +01:00
Daniel Hofstetter
4540ea792f blockdev: remove unnecessary unsafe blocks 2025-03-12 09:31:55 +01:00
Tuomas Tynkkynen
c8aa5a6b57 mesg: Add tool 2025-03-09 02:13:47 +02:00
Daniel Hofstetter
0554e8cdfe Merge pull request #231 from alxndrv/add-lslocks
Add partial implementation of `lslocks`
2025-02-24 14:23:06 +01:00
Alexandre Macabies
8a7b23d4eb lscpu: Add option --bytes
Fixes #17.
2025-02-22 17:16:15 +01:00
alxndrv
ee14c44540 lslocks: Small code cleanup 2025-02-21 18:20:53 +02:00
alxndrv
9dd6bc1391 lslocks: Print output in a table format similar to the original 2025-02-20 18:13:45 +02:00
alxndrv
c2b189ff53 lslocks: Implement parsing of /proc/locks 2025-02-18 19:19:39 +02:00
alxndrv
c2571cb6fa lslocks: Set up lslocks entry point 2025-02-18 16:18:49 +02:00
Daniel Hofstetter
68706fbb63 lscpu: simplify signature of CpuInfo::new() 2025-02-17 16:51:13 +01:00
Daniel Hofstetter
d9b6f13b4f Merge pull request #220 from alxndrv/lscpu-read-vulns
`lscpu`: Read CPU information from `sysfs`
2025-02-17 16:40:03 +01:00
Andrey Aleksandrov
748bbf845e Update src/uu/lscpu/src/sysfs.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-02-17 17:34:16 +02:00
alxndrv
3180b89522 lscpu: Fix minor issues from review 2025-02-17 16:40:08 +02:00
renovate[bot]
62291c6726 fix(deps): update rust crate parse_datetime to 0.8.0 2025-02-17 11:12:57 +00:00
Daniel Hofstetter
93de68e70c Merge pull request #216 from Foorack/lsmem
Improve `lsmem`
2025-02-15 16:10:03 +01:00
Foorack
088c023d5c lsmem: Remove unnecessary allow(dead_code) 2025-02-15 10:47:27 +01:00
alxndrv
4b6b9f9291 lscpu: Show "threads per core" count 2025-02-14 22:17:52 +02:00
alxndrv
c6a3659029 lscpu: Print cache sizes in human-readable form 2025-02-14 20:38:12 +02:00
alxndrv
2a381e5321 lscpu: Use own function to parse cache sizes 2025-02-14 19:33:19 +02:00
alxndrv
bc44b86fe7 lscpu: Calculate core/socket count 2025-02-14 15:31:54 +02:00
alxndrv
41bff4fbd6 lscpu: Show number of physical CPU sockets, add unit test 2025-02-14 14:57:43 +02:00
alxndrv
99c751bd1d lscpu: Parse CPU cache topology from sysfs 2025-02-14 13:34:36 +02:00
alxndrv
e689bee771 lscpu: Read CPU count from sysfs, add freq_boost status to output 2025-02-13 22:10:25 +02:00
alxndrv
3980e7714f lscpu: Show CPU vulnerability mitigation info 2025-02-13 19:25:44 +02:00
alxndrv
21706eb103 lscpu: Move code around as per the review comments 2025-02-13 12:28:00 +02:00
alxndrv
0281da00dd lscpu: Align output values to the same column 2025-02-12 20:22:05 +02:00
alxndrv
e0a6ec7eb5 lscpu: Add support for CPU byte order 2025-02-12 19:40:34 +02:00
alxndrv
5e98c66882 lscpu: Don't early-return on failure to read /proc/cpuinfo 2025-02-12 19:15:57 +02:00
alxndrv
3953552e3a lscpu: Clean up creation of new entries 2025-02-12 18:56:34 +02:00
alxndrv
1e456daff5 lscpu: Use recursive printing logic to output nested fields 2025-02-12 18:37:49 +02:00