Add threaded mt fetching, initial db tuff

This commit is contained in:
2026-08-14 18:58:22 +03:00
parent fbef11dfe7
commit c7d2af0fd0
11 changed files with 505 additions and 81 deletions

View File

@@ -27,11 +27,11 @@ pub struct CliArgs {
pub config_file: camino::Utf8PathBuf,
/// Output more information in logs
#[arg(long = "verbose", short = 'v', conflicts_with="quiet")]
#[arg(long = "verbose", short = 'v', conflicts_with = "quiet")]
pub verbose: bool,
/// Output more information in logs
#[arg(long = "quiet", short = 'q', conflicts_with="verbose")]
#[arg(long = "quiet", short = 'q', conflicts_with = "verbose")]
pub quiet: bool,
#[command(subcommand)]
@@ -92,6 +92,7 @@ pub enum CliCommand {
#[command(subcommand)]
command: CliDeviceCommand,
},
BesWifi,
#[default]
#[clap(skip)]
@@ -104,20 +105,20 @@ pub enum CliDeviceCommand {
List,
Add {
/// Device name
#[arg(short='n', long)]
#[arg(short = 'n', long)]
name: String,
/// Device address, ipv4 or ipv6
#[arg(short='H', long)]
#[arg(short = 'H', long)]
host: IpAddr,
/// Device Port (skip for default)
#[arg(short='p', long)]
#[arg(short = 'p', long)]
port: Option<u16>,
/// Username (skip for default)
#[arg(short='U', long)]
#[arg(short = 'U', long)]
username: Option<String>,
/// Password (skip for default)
#[arg(short='P', long)]
password: Option<String>
#[arg(short = 'P', long)]
password: Option<String>,
},
Remove {
/// Name of the device