Skip to content

Commit b9fc50d

Browse files
committed
Implement wall
Tries to mirror functionality with GNU, namely having timeout and nobanner options. TODO: - tests - buildable on windows
1 parent 5d891c4 commit b9fc50d

6 files changed

Lines changed: 429 additions & 8 deletions

File tree

Cargo.lock

Lines changed: 15 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ feat_common_core = [
4747
"setpgid",
4848
"setsid",
4949
"uuidgen",
50+
"wall",
5051
]
5152

5253
[workspace.dependencies]
@@ -86,10 +87,10 @@ clap = { workspace = true }
8687
clap_complete = { workspace = true }
8788
clap_mangen = { workspace = true }
8889
dns-lookup = { workspace = true }
89-
parse_datetime = {workspace = true}
90+
parse_datetime = { workspace = true }
9091
phf = { workspace = true }
9192
serde = { workspace = true }
92-
serde_json = { workspace = true }
93+
serde_json = { workspace = true }
9394
textwrap = { workspace = true }
9495
uucore = { workspace = true }
9596

@@ -113,13 +114,16 @@ nologin = { optional = true, version = "0.0.1", package = "uu_nologin", path = "
113114
renice = { optional = true, version = "0.0.1", package = "uu_renice", path = "src/uu/renice" }
114115
rev = { optional = true, version = "0.0.1", package = "uu_rev", path = "src/uu/rev" }
115116
setpgid = { optional = true, version = "0.0.1", package = "uu_setpgid", path = "src/uu/setpgid" }
116-
setsid = { optional = true, version = "0.0.1", package = "uu_setsid", path ="src/uu/setsid" }
117-
uuidgen = { optional = true, version = "0.0.1", package = "uu_uuidgen", path ="src/uu/uuidgen" }
117+
setsid = { optional = true, version = "0.0.1", package = "uu_setsid", path = "src/uu/setsid" }
118+
uuidgen = { optional = true, version = "0.0.1", package = "uu_uuidgen", path = "src/uu/uuidgen" }
119+
wall = { optional = true, version = "0.0.1", package = "uu_wall", path = "src/uu/wall" }
118120

119121
[dev-dependencies]
120122
ctor = "0.6.0"
121123
# dmesg test require fixed-boot-time feature turned on.
122-
dmesg = { version = "0.0.1", package = "uu_dmesg", path = "src/uu/dmesg", features = ["fixed-boot-time"] }
124+
dmesg = { version = "0.0.1", package = "uu_dmesg", path = "src/uu/dmesg", features = [
125+
"fixed-boot-time",
126+
] }
123127
libc = { workspace = true }
124128
pretty_assertions = "1"
125129
rand = { workspace = true }

src/uu/wall/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "uu_wall"
3+
version = "0.0.1"
4+
edition = "2021"
5+
6+
[lib]
7+
path = "src/wall.rs"
8+
9+
[[bin]]
10+
name = "wall"
11+
path = "src/main.rs"
12+
13+
[dependencies]
14+
uucore = { workspace = true }
15+
clap = { workspace = true }
16+
libc = { workspace = true }
17+
chrono = { workspace = true }
18+
unicode-width = "0.2.2"

src/uu/wall/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uucore::bin!(uu_wall);

0 commit comments

Comments
 (0)