lslocks: Set up lslocks entry point

This commit is contained in:
alxndrv
2025-02-18 16:18:49 +02:00
parent 92552f73f2
commit c2571cb6fa
5 changed files with 55 additions and 0 deletions

17
src/uu/lslocks/Cargo.toml Normal file
View File

@@ -0,0 +1,17 @@
[package]
name = "uu_lslocks"
version = "0.0.1"
edition = "2021"
[lib]
path = "src/lslocks.rs"
[[bin]]
name = "lslocks"
path = "src/main.rs"
[dependencies]
uucore = { workspace = true }
clap = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }

View File

@@ -0,0 +1,21 @@
// This file is part of the uutils util-linux package.
//
// For the full copyright and license information, please view the LICENSE
// file that was distributed with this source code.
use clap::{crate_version, Command};
use uucore::error::UResult;
#[uucore::main]
pub fn uumain(_args: impl uucore::Args) -> UResult<()> {
println!("lslocks: Hello world");
Ok(())
}
pub fn uu_app() -> Command {
Command::new(uucore::util_name())
.version(crate_version!())
//.about(ABOUT)
//.override_usage(format_usage(USAGE))
.infer_long_args(true)
}

View File

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