feat(process): add plugin (#348)

This commit is contained in:
Lucas Fernandes Nogueira
2023-05-09 12:00:44 -03:00
committed by GitHub
parent 61e7d6ede5
commit 012d32e8ed
19 changed files with 440 additions and 2 deletions
+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()
}