1431 Commits

Author SHA1 Message Date
Daniel Hofstetter 070ad5e975 Merge pull request #570 from uutils/renovate/bytesize-2.x-lockfile
chore(deps): update rust crate bytesize to v2.2.0
2025-11-10 07:05:02 +01:00
renovate[bot] 13341a9f19 chore(deps): update rust crate bytesize to v2.2.0 2025-11-10 05:51:27 +00:00
Daniel Hofstetter bfd7f2ca98 Merge pull request #566 from Krysztal112233/chore/pgrep_optimize
pgrep: migrate some field into `OnceLock` of `ProcessInformation`
2025-11-08 16:54:31 +01:00
Daniel Hofstetter c79514d1ce Merge pull request #567 from Krysztal112233/chore/pgrep_optimize_namespace
pgrep: optimize get `Namespace` via `statx` syscall
2025-11-08 16:32:39 +01:00
Krysztal Huang 7d94174992 pgrep: optimize get Namespace via statx syscall 2025-11-08 03:38:36 +08:00
Krysztal Huang a614f44a9c pgrep: migrate some field into OnceLock of ProcessInformation
`ProcessInformation::cached_stat` -> `ProcessInformation::stat`
`ProcessInformation::cached_status` -> `ProcessInformation::status`
`ProcessInformation::cached_thread_ids` -> `ProcessInformation::thread_ids`
2025-11-08 02:33:39 +08:00
Daniel Hofstetter f40f58880a Merge pull request #565 from uutils/renovate/jiff-0.x-lockfile
chore(deps): update rust crate jiff to v0.2.16
2025-11-07 18:37:23 +01:00
renovate[bot] b5e0497db5 chore(deps): update rust crate jiff to v0.2.16 2025-11-07 17:04:02 +00:00
Krysztal Huang 540ba88ba4 Merge pull request #564 from dezgeg/ps_flags
ps: Support more process selection flags
2025-11-08 01:03:00 +08:00
Tuomas Tynkkynen 13c2f7510a ps: Support more process selection flags 2025-11-07 17:29:25 +02:00
Tuomas Tynkkynen 6c674aca97 ps: Fix doc comment style inconsistency 2025-11-06 20:21:05 +02:00
Tuomas Tynkkynen 6675c30ded ps: Fix priority of -e and --pids options 2025-11-06 20:21:05 +02:00
Daniel Hofstetter 822b4e30d6 Merge pull request #562 from uutils/renovate/ctor-0.x-lockfile
chore(deps): update rust crate ctor to v0.6.1
2025-11-04 07:17:37 +01:00
renovate[bot] 024cdf9a1b chore(deps): update rust crate ctor to v0.6.1 2025-11-03 20:00:13 +00:00
Krysztal Huang d45e8ebca1 Merge pull request #560 from cakebaker/move_lints_from_ci_to_cargo_toml
Move lints from CI to `Cargo.toml`
2025-11-04 03:59:04 +08:00
Daniel Hofstetter c8dcd124bf all: enable workspace lints 2025-11-03 14:16:43 +01:00
Daniel Hofstetter 0f72e3ab99 Move lints from CI to Cargo.toml 2025-11-03 14:16:43 +01:00
Daniel Hofstetter 9c12e498d8 Merge pull request #559 from dezgeg/ps_refact
ps: Refactor process selection + support new flags
2025-11-03 14:10:02 +01:00
Tuomas Tynkkynen f1b89bc575 ps: Implement --pid flag 2025-11-03 13:17:36 +02:00
Tuomas Tynkkynen e8eb577386 ps: Implement -r flag 2025-11-03 12:32:38 +02:00
Tuomas Tynkkynen cc812d10a0 ps: Implement -x flag 2025-11-03 12:32:36 +02:00
Tuomas Tynkkynen 26150ace8d ps: Exit with status 1 if no process matched
For example, `ps --deselect -A` or `ps --pid` for non existing pid
trigger this.
2025-11-03 12:30:32 +02:00
Tuomas Tynkkynen 0849fe2436 ps: Implement --deselect flag 2025-11-03 12:30:32 +02:00
Tuomas Tynkkynen c63a93da53 ps: Refactor process selection
Refactor the process selection to better support cases where the
behaviour is more complex than simply union of what each individual flag
would list. This is bit similar to what is used in pgrep.
2025-11-03 12:30:32 +02:00
Tuomas Tynkkynen 0d4b961446 ps: Support --no-headers flag 2025-11-03 12:30:30 +02:00
Tuomas Tynkkynen 6e386d973a ps: Fix clippy error
error: implicitly cloning a `String` by calling `to_string` on its dereferenced type
  --> src/uu/ps/src/mapping.rs:18:39
   |
18 |                 None => (key.clone(), mapping.get(&key).unwrap().to_string()),
   |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `mapping.get(&key).unwrap().clone()`
   |
error: implicitly cloning a `String` by calling `to_string` on its dereferenced type
  --> src/uu/ps/src/ps.rs:97:40
   |
97 |             .map(|code| (code.clone(), default_mapping[&code].to_string()))
   |                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `default_mapping[&code].clone()`
2025-11-03 00:40:27 +02:00
Tuomas Tynkkynen 7b329d4b10 vmstat: Fix clippy error
error: implicitly cloning a `String` by calling `to_string` on its dereferenced type
   --> src/uu/vmstat/src/picker.rs:327:16
    |
327 |     vec![(len, runnable.to_string()), (len, blocked.to_string())]
    |                ^^^^^^^^^^^^^^^^^^^^ help: consider using: `runnable.clone()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.91.0/index.html#implicit_clone
    = note: `-D clippy::implicit-clone` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::implicit_clone)]`

error: implicitly cloning a `String` by calling `to_string` on its dereferenced type
   --> src/uu/vmstat/src/picker.rs:327:45
    |
327 |     vec![(len, runnable.to_string()), (len, blocked.to_string())]
    |                                             ^^^^^^^^^^^^^^^^^^^ help: consider using: `blocked.clone()`
2025-11-03 00:37:35 +02:00
Tuomas Tynkkynen 55c96c716a slabtop: Fix clippy error
error: implicitly cloning a `String` by calling `to_string` on its dereferenced type
   --> src/uu/slabtop/src/parse.rs:296:13
    |
296 |             name.to_string(),
    |             ^^^^^^^^^^^^^^^^ help: consider using: `name.clone()`
2025-11-03 00:34:28 +02:00
Tuomas Tynkkynen eb2fefa384 process_matcher.rs: Fix clippy error
error: implicitly cloning a `String` by calling `to_string` on its dereferenced type
   --> src/uu/pgrep/src/process_matcher.rs:212:8
    |
212 |     Ok(pattern.to_string())
    |        ^^^^^^^^^^^^^^^^^^^ help: consider using: `pattern.clone()`
    |
2025-11-03 00:30:04 +02:00
Daniel Hofstetter f636cb9729 Merge pull request #555 from dezgeg/ps_fixes
ps: Fixes
2025-10-30 09:21:21 +01:00
Daniel Hofstetter 0287bbda00 Merge pull request #558 from uutils/renovate/clap_complete-4.x-lockfile
chore(deps): update rust crate clap_complete to v4.5.60
2025-10-30 07:07:55 +01:00
renovate[bot] 7736d52e81 chore(deps): update rust crate clap_complete to v4.5.60 2025-10-30 02:57:24 +00:00
Daniel Hofstetter 6a576b502f Merge pull request #557 from uutils/renovate/clap-4.x-lockfile
chore(deps): update rust crate clap to v4.5.51
2025-10-29 17:49:19 +01:00
renovate[bot] 7edab23298 chore(deps): update rust crate clap to v4.5.51 2025-10-29 16:24:45 +00:00
Krysztal Huang 3623778ee1 Merge pull request #556 from cakebaker/readme_fix_url_codecov_badge
README: fix url of coverage badge
2025-10-30 00:23:44 +08:00
Krysztal Huang 5b5c464c62 Merge pull request #551 from cakebaker/bump_mio
Bump `mio` from `1.0.3` to `1.0.4`
2025-10-30 00:23:08 +08:00
Krysztal Huang f6f64dd515 Merge branch 'main' into bump_mio 2025-10-30 00:22:57 +08:00
Daniel Hofstetter fc7877df3b README: fix url of coverage badge 2025-10-27 15:34:36 +01:00
Tuomas Tynkkynen 29b8eb24e1 ps: Add euid check for default output format
For instance, leaving a `sudo sleep 9999 &` running in the same
terminal shouldn't be displayed.

Clean up code a bit by utilizing current_process_info().
2025-10-26 23:27:29 +02:00
Tuomas Tynkkynen 8edbe400b6 ps: Properly implement -d flag 2025-10-26 23:27:29 +02:00
Tuomas Tynkkynen 701333c56b ps: Only include basic_collector if no other arguments
Otherwise listed processes would always be a super-set of what the
default output lists, which is not correct since for example `ps -d`
would report too many processes.
2025-10-26 23:27:29 +02:00
Tuomas Tynkkynen 49c7d72f0d ps: Sort before dedup
dedup_by() only deduplicates consecutively identical elements, so `ps
-A` is returning some processes twice.
2025-10-26 23:27:29 +02:00
Daniel Hofstetter 495077d6c5 Merge pull request #542 from uutils/renovate/ctor-0.x
chore(deps): update rust crate ctor to 0.6.0
2025-10-25 15:20:16 +02:00
renovate[bot] 54280345a4 chore(deps): update rust crate ctor to 0.6.0 2025-10-25 13:04:01 +00:00
Daniel Hofstetter 2a5ec3807b Bump mio from 1.0.3 to 1.0.4 2025-10-25 14:53:44 +02:00
Daniel Hofstetter cf8ed227c7 Merge pull request #554 from uutils/renovate/uutests-0.x
chore(deps): update rust crate uutests to 0.3.0
2025-10-25 12:53:24 +02:00
renovate[bot] 16285949e6 chore(deps): update rust crate uutests to 0.3.0 2025-10-25 10:07:11 +00:00
Daniel Hofstetter 9093e4ec5f Merge pull request #552 from uutils/renovate/clap_mangen-0.x-lockfile
chore(deps): update rust crate clap_mangen to v0.2.31
2025-10-23 07:12:00 +02:00
renovate[bot] e1f0f39fe4 chore(deps): update rust crate clap_mangen to v0.2.31 2025-10-22 17:39:49 +00:00
Daniel Hofstetter e0142d9ca8 Merge pull request #549 from Bluemangoo/feature/top-tui-sg-action
top: impl `^u` `r` `k`
2025-10-22 09:04:11 +02:00