feat(process): add plugin (#348)

This commit is contained in:
Lucas Fernandes Nogueira authored and GitHub committed 2023-05-09 12:00:44 -03:00
1 parent 61e7d6ede5
commit 012d32e8ed
19 files changed
+440 -2

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
use tauri::{AppHandle, Runtime};
#[tauri::command]
pub fn exit<R: Runtime>(app: AppHandle<R>, code: i32) {
app.exit(code)
}
#[tauri::command]
pub fn restart<R: Runtime>(app: AppHandle<R>) {
app.restart()
}