Add threaded mt fetching, initial db tuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user