feat: add argument to output answers as json

This commit is contained in:
Moritz Böhme 2023-08-26 11:06:51 +02:00
parent 323c2fba18
commit 1a10f620b4
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
4 changed files with 39 additions and 6 deletions

View file

@ -12,9 +12,13 @@ use std::time::Duration;
pub struct Cli {
#[command(subcommand)]
pub command: Command,
#[arg(short, long)]
#[clap(default_value_t = format!("{}/timers.socket", run_path()))]
pub socket: String,
#[arg(long)]
pub json: bool
}
#[derive(Debug, Subcommand)]