mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-22 02:01:49 +03:00
28 lines
597 B
Rust
28 lines
597 B
Rust
// Copyright 2019-2021 Tauri Programme within The Commons Conservancy
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
use tauri::{command, State};
|
|
|
|
#[command]
|
|
pub fn cmd(_argument: String) {}
|
|
|
|
#[command]
|
|
pub fn invoke(_argument: String) {}
|
|
|
|
#[command]
|
|
pub fn message(_argument: String) {}
|
|
|
|
#[command]
|
|
pub fn resolver(_argument: String) {}
|
|
|
|
#[command]
|
|
pub fn simple_command(argument: String) {
|
|
println!("{}", argument);
|
|
}
|
|
|
|
#[command]
|
|
pub fn stateful_command(argument: Option<String>, state: State<'_, super::MyState>) {
|
|
println!("{:?} {:?}", argument, state.inner());
|
|
}
|