Private
Public Access
1
0
Files
Kordophone/kpcli/src/main.rs

44 lines
955 B
Rust
Raw Normal View History

2024-11-09 17:35:39 -08:00
use clap::{Parser, Subcommand};
use kordophone::APIInterface;
#[derive(Parser)]
#[command(name = "kpcli")]
#[command(about = "CLI tool for the Kordophone daemon")]
struct Cli {
#[command(subcommand)]
command: Commands,
}
#[derive(Subcommand)]
enum Commands {
/// Commands for api client operations
Client {
#[command(subcommand)]
command: ClientCommands,
},
}
#[derive(Subcommand)]
enum ClientCommands {
ListConversations,
Version,
}
fn main() {
let cli = Cli::parse();
match cli.command {
Commands::Client { command } => match command {
ClientCommands::ListConversations => {
println!("Listing conversations...");
// TODO: Implement conversation listing
},
ClientCommands::Version => {
println!("Getting version...");
// TODO: Implement version getting
},
},
}
}