feat: add argument to output answers as json
This commit is contained in:
parent
323c2fba18
commit
1a10f620b4
4 changed files with 39 additions and 6 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue