Skip to content

pgrep, pkill: Unify process matching code #322

Merged
cakebaker merged 4 commits intouutils:mainfrom
dezgeg:pgrep_pkill_unification2
Feb 14, 2025
Merged

pgrep, pkill: Unify process matching code #322
cakebaker merged 4 commits intouutils:mainfrom
dezgeg:pgrep_pkill_unification2

Conversation

@dezgeg
Copy link
Copy Markdown
Contributor

@dezgeg dezgeg commented Feb 13, 2025

After previous changes the process matching part in pgrep and pkill are identical. Extract it into a common module for both.

Also move construction of Settings into its own function.
Requires adding require_handler to Settings.
@dezgeg dezgeg force-pushed the pgrep_pkill_unification2 branch from 9c2c845 to eef5fab Compare February 13, 2025 20:36
The process matching logic for pgrep and pkill is identical, extract it
to a common module.
@dezgeg dezgeg force-pushed the pgrep_pkill_unification2 branch from eef5fab to ba00e9c Compare February 13, 2025 20:41
@cakebaker cakebaker merged commit 98a2356 into uutils:main Feb 14, 2025
14 checks passed
@codecov
Copy link
Copy Markdown

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.00%. Comparing base (a1ef871) to head (ba00e9c).
Report is 6 commits behind head on main.

Additional details and impacted files
@@     Coverage Diff     @@
##   main   #322   +/-   ##
===========================
===========================

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cakebaker
Copy link
Copy Markdown
Contributor

Nice refactoring, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants