kpcli: add daemon messaging support
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user