feat: expose tauri app commands
This commit is contained in:
1 parent
54e8b42330
commit
bfa96248aa
3 files changed
+236
-1
No files matched your search
+17
-1
@@ -1,13 +1,29 @@
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub mod app_state;
|
||||
pub mod audio;
|
||||
pub mod error;
|
||||
pub mod injection;
|
||||
pub mod models;
|
||||
pub mod settings;
|
||||
pub mod transcription;
|
||||
pub mod ui_commands;
|
||||
|
||||
use app_state::ManagedAppState;
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.manage(ManagedAppState::default())
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
ui_commands::get_app_snapshot,
|
||||
ui_commands::start_recording,
|
||||
ui_commands::stop_recording_and_transcribe,
|
||||
ui_commands::copy_ready_text,
|
||||
ui_commands::request_insert_text,
|
||||
ui_commands::list_models,
|
||||
ui_commands::get_settings,
|
||||
ui_commands::save_settings
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("erro ao executar o aplicativo Tauri");
|
||||
}
|
||||
Reference in new issue
Block a user