实现 LightOps 运维面板基础功能
This commit is contained in:
10
crates/lightops-cli/Cargo.toml
Normal file
10
crates/lightops-cli/Cargo.toml
Normal file
@@ -0,0 +1,10 @@
|
||||
[package]
|
||||
name = "lightops-cli"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
|
||||
[dependencies]
|
||||
anyhow.workspace = true
|
||||
clap.workspace = true
|
||||
|
||||
14
crates/lightops-cli/src/main.rs
Normal file
14
crates/lightops-cli/src/main.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
use anyhow::Result;
|
||||
use clap::Parser;
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
struct Args {
|
||||
#[arg(long)]
|
||||
version: bool,
|
||||
}
|
||||
|
||||
fn main() -> Result<()> {
|
||||
let _args = Args::parse();
|
||||
println!("lightops-cli {}", env!("CARGO_PKG_VERSION"));
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user