Add cli crate
This commit is contained in:
parent
8fbdf63c51
commit
be99e7b3aa
4 changed files with 267 additions and 1 deletions
11
tta-cli/Cargo.toml
Normal file
11
tta-cli/Cargo.toml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[package]
|
||||
name = "tta-cli"
|
||||
version = { workspace = true }
|
||||
edition = { workspace = true }
|
||||
|
||||
[dependencies]
|
||||
clap = { workspace = true }
|
||||
tta = { workspace = true }
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
11
tta-cli/src/main.rs
Normal file
11
tta-cli/src/main.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use clap::Parser;
|
||||
|
||||
#[derive(Parser)]
|
||||
struct Args {
|
||||
greetee: String,
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let args = Args::parse();
|
||||
println!("{}", tta::greet(&args.greetee));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue