34 lines
978 B
Rust
34 lines
978 B
Rust
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
mod git;
|
|
|
|
use git::{
|
|
checkout_branch, commit, get_status, list_branches, list_commits, list_file_history,
|
|
list_repository_files, merge_branch, open_repository, pull, push, restore_file_from_commit,
|
|
restore_files, restore_to_commit, stage_files, unstage_files,
|
|
};
|
|
|
|
fn main() {
|
|
tauri::Builder::default()
|
|
.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
|
|
])
|
|
.run(tauri::generate_context!())
|
|
.expect("error while running tauri application");
|
|
}
|