#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] mod git; use git::{ cancel_code_search, checkout_branch, commit, compare_commits, compare_file_to_head, diff_file_against_working_tree, get_status, list_branches, list_commits, list_file_history, list_repository_files, merge_branch, open_repository, pull, push, read_conflict, resolve_conflict, resolve_conflict_side, restore_file_from_commit, restore_files, restore_to_commit, search_code_introductions, stage_files, unstage_files, SearchCancellationState, }; fn main() { tauri::Builder::default() .manage(SearchCancellationState::default()) .plugin(tauri_plugin_dialog::init()) .invoke_handler(tauri::generate_handler![ open_repository, get_status, list_branches, checkout_branch, stage_files, unstage_files, restore_files, commit, pull, push, list_commits, restore_to_commit, restore_file_from_commit, merge_branch, list_repository_files, list_file_history, compare_commits, compare_file_to_head, diff_file_against_working_tree, search_code_introductions, cancel_code_search, read_conflict, resolve_conflict, resolve_conflict_side ]) .run(tauri::generate_context!()) .expect("error while running tauri application"); }