Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkill: implement #290

Merged
merged 29 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
35a4ba3
pkill: init source
MCredbear Nov 14, 2024
d443654
Merge branch 'pkill' of github.com:MCredbear/procps into pkill
MCredbear Nov 14, 2024
b620a6d
Merge branch 'uutils:main' into pkill
MCredbear Dec 4, 2024
2d12920
pkill: implement
MCredbear Dec 23, 2024
038a603
Merge branch 'uutils:main' into pkill
MCredbear Dec 23, 2024
c206a7c
pkill: implement `-e`
MCredbear Dec 26, 2024
6bacd58
pkill: change `&mut self` to `&self` for `status`, `stat`, `start_tim…
MCredbear Dec 26, 2024
ea31bfc
pkill: implement `-H`
MCredbear Dec 26, 2024
175d85e
pkill: format code
MCredbear Dec 26, 2024
43660b8
pkill: remove .idea dir
MCredbear Dec 26, 2024
0625ad9
pkill: beautify code
MCredbear Dec 26, 2024
0649a4c
pkill: beautify code
MCredbear Dec 26, 2024
78fad3d
Merge branch 'main' into pkill
Krysztal112233 Dec 30, 2024
065a456
pkill: fix Cargo.toml
MCredbear Dec 31, 2024
72a0d19
Merge branch 'pkill' of github.com:MCredbear/procps into pkill
MCredbear Dec 31, 2024
1a21770
pkill: remove duplicated process.rs
MCredbear Jan 1, 2025
dd39789
pkill: add unit tests
MCredbear Jan 1, 2025
21e10e4
pkill: beautify code
MCredbear Jan 1, 2025
48e0624
Merge branch 'main' into pkill
sylvestre Jan 6, 2025
cb1f9ea
pkill: fix CI failures for windows
MCredbear Jan 7, 2025
db696af
Merge branch 'pkill' of github.com:MCredbear/procps into pkill
MCredbear Jan 7, 2025
2f943c4
pkill: fix CI failures for windows
MCredbear Jan 7, 2025
1d1e45b
pkill: fix CI failures for windows
MCredbear Jan 7, 2025
467c584
pkill: fix CI failures for windows
MCredbear Jan 7, 2025
794c2ee
pkill: fix CI failures for windows
MCredbear Jan 7, 2025
44d208e
pkill: fix CI failures for MacOS
MCredbear Jan 7, 2025
bb23093
pkill: fix CI failures for windows
MCredbear Jan 7, 2025
61e91cb
pkill: fix CI failures for windows
MCredbear Jan 7, 2025
a48a50e
Merge branch 'main' into pkill
Krysztal112233 Jan 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ feat_common_core = [
"pwdx",
"slabtop",
"snice",
"pkill",
"top",
"w",
"watch",
Expand Down Expand Up @@ -82,6 +83,7 @@ ps = { optional = true, version = "0.0.1", package = "uu_ps", path = "src/uu/ps"
pwdx = { optional = true, version = "0.0.1", package = "uu_pwdx", path = "src/uu/pwdx" }
slabtop = { optional = true, version = "0.0.1", package = "uu_slabtop", path = "src/uu/slabtop" }
snice = { optional = true, version = "0.0.1", package = "uu_snice", path = "src/uu/snice" }
pkill = { optional = true, version = "0.0.1", package = "uu_pkill", path = "src/uu/pkill" }
top = { optional = true, version = "0.0.1", package = "uu_top", path = "src/uu/top" }
w = { optional = true, version = "0.0.1", package = "uu_w", path = "src/uu/w" }
watch = { optional = true, version = "0.0.1", package = "uu_watch", path = "src/uu/watch" }
Expand Down
29 changes: 29 additions & 0 deletions src/uu/pkill/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "uu_pkill"
version = "0.0.1"
edition = "2021"
authors = ["uutils developers"]
license = "MIT"
description = "pgrep ~ (uutils) Kills processes based on name and other attributes."

homepage = "https://github.com/uutils/procps"
repository = "https://github.com/uutils/procps/tree/main/src/uu/pkill"
keywords = ["acl", "uutils", "cross-platform", "cli", "utility"]
categories = ["command-line-utilities"]


[dependencies]
uucore = { workspace = true }
clap = { workspace = true }
walkdir = { workspace = true }
regex = { workspace = true }
nix = { workspace = true, features = ["signal"] }

uu_pgrep = { path = "../pgrep" }

[lib]
path = "src/pkill.rs"

[[bin]]
name = "pkill"
path = "src/main.rs"
7 changes: 7 additions & 0 deletions src/uu/pkill/pkill.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# pgrep

```
pkill [options] <pattern>
```

Kills processes based on name and other attributes.
1 change: 1 addition & 0 deletions src/uu/pkill/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uucore::bin!(uu_pkill);
Loading
Loading