mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-23 11:05:01 +01:00
39 lines
782 B
Rust
39 lines
782 B
Rust
use crate::commands::{add, branch, checkout, commit, delete_branch, fetch_all, initialize, log, merge_branch, pull, push, status, unstage};
|
|
use tauri::{
|
|
generate_handler,
|
|
plugin::{Builder, TauriPlugin},
|
|
Runtime,
|
|
};
|
|
|
|
mod branch;
|
|
mod callbacks;
|
|
mod commands;
|
|
pub mod error;
|
|
mod fetch;
|
|
mod git;
|
|
mod merge;
|
|
mod pull;
|
|
mod push;
|
|
mod repository;
|
|
mod util;
|
|
|
|
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
|
Builder::new("yaak-git")
|
|
.invoke_handler(generate_handler![
|
|
add,
|
|
branch,
|
|
checkout,
|
|
commit,
|
|
delete_branch,
|
|
fetch_all,
|
|
initialize,
|
|
log,
|
|
merge_branch,
|
|
pull,
|
|
push,
|
|
status,
|
|
unstage
|
|
])
|
|
.build()
|
|
}
|