2023-02-19 16:17:49 +03:00
|
|
|
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy
|
2021-05-05 20:32:13 +03:00
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
2021-05-09 14:52:20 +03:00
|
|
|
use tauri::{command, State};
|
|
|
|
|
2021-05-12 17:17:33 +03:00
|
|
|
#[command]
|
|
|
|
pub fn cmd(_argument: String) {}
|
|
|
|
|
2021-05-12 18:22:05 +03:00
|
|
|
#[command]
|
|
|
|
pub fn invoke(_argument: String) {}
|
|
|
|
|
2021-05-12 18:56:16 +03:00
|
|
|
#[command]
|
|
|
|
pub fn message(_argument: String) {}
|
|
|
|
|
|
|
|
#[command]
|
|
|
|
pub fn resolver(_argument: String) {}
|
|
|
|
|
2021-05-09 14:52:20 +03:00
|
|
|
#[command]
|
2022-09-28 19:52:18 +03:00
|
|
|
pub fn simple_command(the_argument: String) {
|
2022-12-16 00:03:28 +03:00
|
|
|
println!("{the_argument}");
|
2021-05-05 20:32:13 +03:00
|
|
|
}
|
|
|
|
|
2021-05-09 14:52:20 +03:00
|
|
|
#[command]
|
2022-09-28 19:52:18 +03:00
|
|
|
pub fn stateful_command(the_argument: Option<String>, state: State<'_, super::MyState>) {
|
|
|
|
println!("{:?} {:?}", the_argument, state.inner());
|
2021-05-05 20:32:13 +03:00
|
|
|
}
|