lslocks
: Set up lslocks
entry point
This commit is contained in:
17
src/uu/lslocks/Cargo.toml
Normal file
17
src/uu/lslocks/Cargo.toml
Normal 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 }
|
21
src/uu/lslocks/src/lslocks.rs
Normal file
21
src/uu/lslocks/src/lslocks.rs
Normal 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)
|
||||
}
|
1
src/uu/lslocks/src/main.rs
Normal file
1
src/uu/lslocks/src/main.rs
Normal file
@@ -0,0 +1 @@
|
||||
uucore::bin!(uu_lslocks);
|
Reference in New Issue
Block a user