mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-12 22:47:08 +02:00
feat(process): add plugin (#348)
This commit is contained in:
1 parent
61e7d6ede5
commit
012d32e8ed
19 files changed
+440
-2
No files matched your search
@@ -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