17 lines
346 B
Rust
17 lines
346 B
Rust
use arguments::{Arguments, Commands};
|
|
use clap::Parser;
|
|
use commands::{add, print};
|
|
|
|
mod arguments;
|
|
mod commands;
|
|
|
|
fn main() {
|
|
let args = Arguments::parse();
|
|
|
|
match &args.command {
|
|
Commands::Print { group } => print(&args.path, &group),
|
|
Commands::Add { url, name } => add(&args.path, url, name),
|
|
Commands::Remove { url } => todo!(),
|
|
}
|
|
}
|