mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-20 07:51:20 +02:00
Move a bunch of git ops to use the git binary (#302)
This commit is contained in:
@@ -1,26 +1,34 @@
|
||||
use crate::commands::{add, branch, checkout, commit, delete_branch, fetch_all, initialize, log, merge_branch, pull, push, status, unstage};
|
||||
use crate::commands::{add, add_credential, add_remote, branch, checkout, commit, delete_branch, fetch_all, initialize, log, merge_branch, pull, push, remotes, rm_remote, status, unstage};
|
||||
use tauri::{
|
||||
generate_handler,
|
||||
Runtime, generate_handler,
|
||||
plugin::{Builder, TauriPlugin},
|
||||
Runtime,
|
||||
};
|
||||
|
||||
mod add;
|
||||
mod binary;
|
||||
mod branch;
|
||||
mod callbacks;
|
||||
mod commands;
|
||||
pub mod error;
|
||||
mod commit;
|
||||
mod credential;
|
||||
mod fetch;
|
||||
mod git;
|
||||
mod init;
|
||||
mod log;
|
||||
mod merge;
|
||||
mod pull;
|
||||
mod push;
|
||||
mod remotes;
|
||||
mod repository;
|
||||
mod status;
|
||||
mod unstage;
|
||||
mod util;
|
||||
pub mod error;
|
||||
|
||||
pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
Builder::new("yaak-git")
|
||||
.invoke_handler(generate_handler![
|
||||
add,
|
||||
add_credential,
|
||||
add_remote,
|
||||
branch,
|
||||
checkout,
|
||||
commit,
|
||||
@@ -31,8 +39,10 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
|
||||
merge_branch,
|
||||
pull,
|
||||
push,
|
||||
remotes,
|
||||
rm_remote,
|
||||
status,
|
||||
unstage
|
||||
unstage,
|
||||
])
|
||||
.build()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user