mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-08-11 18:40:22 +02:00
feat(process): add plugin (#348)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
Reference in New Issue
Block a user