mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
who: add entries
This commit is contained in:
@@ -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" }
|
||||
|
||||
|
||||
@@ -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
|
||||
-------
|
||||
|
||||
@@ -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"
|
||||
@@ -0,0 +1,5 @@
|
||||
extern crate uu_who;
|
||||
|
||||
fn main() {
|
||||
std::process::exit(uu_who::uumain(std::env::args().collect()));
|
||||
}
|
||||
Reference in New Issue
Block a user