mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
who: add entries
This commit is contained in:
parent
548b58a09e
commit
8c6cd72848
5 changed files with 30 additions and 2 deletions
|
@ -34,6 +34,7 @@ unix = [
|
||||||
"unlink",
|
"unlink",
|
||||||
"uptime",
|
"uptime",
|
||||||
"users",
|
"users",
|
||||||
|
"who",
|
||||||
]
|
]
|
||||||
generic = [
|
generic = [
|
||||||
"base32",
|
"base32",
|
||||||
|
@ -187,6 +188,7 @@ unlink = { optional=true, path="src/unlink" }
|
||||||
uptime = { optional=true, path="src/uptime" }
|
uptime = { optional=true, path="src/uptime" }
|
||||||
users = { optional=true, path="src/users" }
|
users = { optional=true, path="src/users" }
|
||||||
wc = { optional=true, path="src/wc" }
|
wc = { optional=true, path="src/wc" }
|
||||||
|
who = { optional=true, path="src/who" }
|
||||||
whoami = { optional=true, path="src/whoami" }
|
whoami = { optional=true, path="src/whoami" }
|
||||||
yes = { optional=true, path="src/yes" }
|
yes = { optional=true, path="src/yes" }
|
||||||
|
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -129,7 +129,8 @@ UNIX_PROGS := \
|
||||||
uname \
|
uname \
|
||||||
unlink \
|
unlink \
|
||||||
uptime \
|
uptime \
|
||||||
users
|
users \
|
||||||
|
who
|
||||||
|
|
||||||
ifneq ($(OS),Windows_NT)
|
ifneq ($(OS),Windows_NT)
|
||||||
PROGS := $(PROGS) $(UNIX_PROGS)
|
PROGS := $(PROGS) $(UNIX_PROGS)
|
||||||
|
|
|
@ -170,7 +170,6 @@ To do
|
||||||
- tail (not all features implemented)
|
- tail (not all features implemented)
|
||||||
- test (not all features implemented)
|
- test (not all features implemented)
|
||||||
- uniq (a couple of missing options)
|
- uniq (a couple of missing options)
|
||||||
- who
|
|
||||||
|
|
||||||
License
|
License
|
||||||
-------
|
-------
|
||||||
|
|
21
src/who/Cargo.toml
Normal file
21
src/who/Cargo.toml
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
[package]
|
||||||
|
name = "who"
|
||||||
|
version = "0.0.1"
|
||||||
|
authors = []
|
||||||
|
|
||||||
|
[lib]
|
||||||
|
name = "uu_who"
|
||||||
|
path = "who.rs"
|
||||||
|
|
||||||
|
[dependencies.uucore]
|
||||||
|
path = "../uucore"
|
||||||
|
default-features = false
|
||||||
|
features = ["utmpx"]
|
||||||
|
|
||||||
|
[dependencies.clippy]
|
||||||
|
version = "*"
|
||||||
|
optional = true
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "who"
|
||||||
|
path = "main.rs"
|
5
src/who/main.rs
Normal file
5
src/who/main.rs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
extern crate uu_who;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
std::process::exit(uu_who::uumain(std::env::args().collect()));
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue