mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Add an --no-ui option to the ui version
The UI verison will just perform a sync as if it was the cli version
This commit is contained in:
+9
-1
@@ -29,5 +29,13 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
||||
|
||||
#[cfg(feature = "ui")]
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
ui::run_ui()
|
||||
|
||||
let mut args = std::env::args();
|
||||
if args.len() > 1 && args.nth(1).unwrap_or_default() == "--no-ui" {
|
||||
ui::run_sync();
|
||||
Ok(())
|
||||
}else{
|
||||
ui::run_ui()
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user