Skip to content
Permalink
b1409a3b75
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
28 lines (25 sloc) 839 Bytes
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
mod commands;
mod constants;
mod handlers;
use commands::bambu::{discover_devices, fetch_devices, get_jwt, login_to_bambu, set_jwt};
use commands::config::{get_config, init_config, save_config};
use commands::util::quit;
fn main() {
log::set_max_level(log::LevelFilter::Debug);
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![
init_config,
get_config,
save_config,
quit,
login_to_bambu,
set_jwt,
get_jwt,
fetch_devices,
discover_devices
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}