dmesg: initialize empty dmesg crate.

This commit is contained in:
Fuad Ismail
2024-11-14 22:47:43 +07:00
parent d569dd6ada
commit 44d942da4d
5 changed files with 39 additions and 1 deletions

15
src/uu/dmesg/Cargo.toml Normal file
View File

@@ -0,0 +1,15 @@
[package]
name = "uu_dmesg"
version = "0.0.1"
edition = "2021"
[lib]
path = "src/dmesg.rs"
[[bin]]
name = "dmesg"
path = "src/main.rs"
[dependencies]
clap = { workspace = true }
uucore = { workspace = true }

11
src/uu/dmesg/src/dmesg.rs Normal file
View File

@@ -0,0 +1,11 @@
use clap::{crate_version, Command};
use uucore::error::UResult;
#[uucore::main]
pub fn uumain(_args: impl uucore::Args) -> UResult<()> {
Ok(())
}
pub fn uu_app() -> Command {
Command::new(uucore::util_name()).version(crate_version!())
}

1
src/uu/dmesg/src/main.rs Normal file
View File

@@ -0,0 +1 @@
uucore::bin!(uu_dmesg);