tauri-plugin-shell 2.0.0-beta.4

Access the system shell. Allows you to spawn child processes and manage files and URLs using their default application.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
// SPDX-License-Identifier: Apache-2.0
// SPDX-License-Identifier: MIT

#[path = "src/scope_entry.rs"]
mod scope_entry;

const COMMANDS: &[&str] = &["execute", "stdin_write", "kill", "open"];

fn main() {
    tauri_plugin::Builder::new(COMMANDS)
        .global_api_script_path("./api-iife.js")
        .global_scope_schema(schemars::schema_for!(scope_entry::Entry))
        .build();
}