feat: device commands

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-10-13 15:37:16 +01:00
parent 73c75f941a
commit f74328dfa8
14 changed files with 330 additions and 22 deletions

View File

@@ -1,3 +1,5 @@
use std::error::Error;
use log::LevelFilter;
use log4rs::{
Config,
@@ -6,7 +8,7 @@ use log4rs::{
encode::pattern::PatternEncoder,
};
pub fn init(quiet: bool, verbose: bool) -> Result<(), Box<dyn std::error::Error>> {
pub fn init(quiet: bool, verbose: bool) -> Result<(), Box<dyn Error + Send + Sync>> {
let level = if quiet {
LevelFilter::Warn
} else if verbose {