Private
Public Access
1
0

kpcli: add daemon messaging support

This commit is contained in:
2025-02-12 00:10:33 -08:00
parent fddc45c62a
commit 6a7d376aa9
5 changed files with 89 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
mod client;
mod db;
mod printers;
mod daemon;
use anyhow::Result;
use clap::{Parser, Subcommand};
@@ -25,6 +26,12 @@ enum Commands {
Db {
#[command(subcommand)]
command: db::Commands,
},
/// Commands for interacting with the daemon
Daemon {
#[command(subcommand)]
command: daemon::Commands,
}
}
@@ -32,6 +39,7 @@ async fn run_command(command: Commands) -> Result<()> {
match command {
Commands::Client { command } => client::Commands::run(command).await,
Commands::Db { command } => db::Commands::run(command).await,
Commands::Daemon { command } => daemon::Commands::run(command).await,
}
}