tauri_cli

Function run

Source
pub fn run<I, A>(args: I, bin_name: Option<String>)
where I: IntoIterator<Item = A>, A: Into<OsString> + Clone,
Expand description

Run the Tauri CLI with the passed arguments, exiting if an error occurs.

The passed arguments should have the binary argument(s) stripped out before being passed.

e.g.

  1. tauri-cli 1 2 3 -> 1 2 3
  2. cargo tauri 1 2 3 -> 1 2 3
  3. node tauri.js 1 2 3 -> 1 2 3

The passed bin_name parameter should be how you want the help messages to display the command. This defaults to cargo-tauri, but should be set to how the program was called, such as cargo tauri.