mirror of
https://github.com/uutils/coreutils
synced 2024-10-14 20:07:13 +00:00
who: add entries
This commit is contained in:
parent
548b58a09e
commit
8c6cd72848
|
@ -34,6 +34,7 @@ unix = [
|
|||
"unlink",
|
||||
"uptime",
|
||||
"users",
|
||||
"who",
|
||||
]
|
||||
generic = [
|
||||
"base32",
|
||||
|
@ -187,6 +188,7 @@ unlink = { optional=true, path="src/unlink" }
|
|||
uptime = { optional=true, path="src/uptime" }
|
||||
users = { optional=true, path="src/users" }
|
||||
wc = { optional=true, path="src/wc" }
|
||||
who = { optional=true, path="src/who" }
|
||||
whoami = { optional=true, path="src/whoami" }
|
||||
yes = { optional=true, path="src/yes" }
|
||||
|
||||
|
|
3
Makefile
3
Makefile
|
@ -129,7 +129,8 @@ UNIX_PROGS := \
|
|||
uname \
|
||||
unlink \
|
||||
uptime \
|
||||
users
|
||||
users \
|
||||
who
|
||||
|
||||
ifneq ($(OS),Windows_NT)
|
||||
PROGS := $(PROGS) $(UNIX_PROGS)
|
||||
|
|
|
@ -170,7 +170,6 @@ To do
|
|||
- tail (not all features implemented)
|
||||
- test (not all features implemented)
|
||||
- uniq (a couple of missing options)
|
||||
- who
|
||||
|
||||
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…
Reference in a new issue