38 lines
720 B
Rust
38 lines
720 B
Rust
use clap::{Parser, Subcommand};
|
|
|
|
use l10n_db;
|
|
|
|
#[derive(Parser)]
|
|
#[command(version, about, long_about = None)]
|
|
struct Cli {
|
|
#[command(subcommand)]
|
|
command: Option<Commands>,
|
|
}
|
|
|
|
#[derive(Subcommand)]
|
|
enum Commands {
|
|
// Edit, potentially creating, a key
|
|
// EditKey { },
|
|
// List al keys in the database
|
|
ListKeys,
|
|
// Search the database
|
|
// Search { },
|
|
/// Export the database
|
|
Export {
|
|
#[arg(short, long)]
|
|
format: String,
|
|
#[arg(short, long)]
|
|
locale: String
|
|
},
|
|
}
|
|
|
|
fn main() {
|
|
let cli = Cli::parse();
|
|
|
|
match &cli.command {
|
|
Some(Commands::ListKeys) => todo!(),
|
|
Some(Commands::Export{..}) => todo!(),
|
|
None => {},
|
|
}
|
|
}
|