mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-10 19:16:55 +02:00
Git support (#143)
This commit is contained in:
36
src-tauri/yaak-git/src/lib.rs
Normal file
36
src-tauri/yaak-git/src/lib.rs
Normal file
@@ -0,0 +1,36 @@
|
||||
use crate::commands::{add, branch, checkout, commit, delete_branch, initialize, log, merge_branch, pull, push, status, unstage};
|
||||
use tauri::{
|
||||
generate_handler,
|
||||
plugin::{Builder, TauriPlugin},
|
||||
Runtime,
|
||||
};
|
||||
|
||||
mod branch;
|
||||
mod callbacks;
|
||||
mod commands;
|
||||
mod error;
|
||||
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,
|
||||
initialize,
|
||||
log,
|
||||
merge_branch,
|
||||
pull,
|
||||
push,
|
||||
status,
|
||||
unstage
|
||||
])
|
||||
.build()
|
||||
}
|
||||
Reference in New Issue
Block a user