pub fn run<I, A>(args: I, bin_name: Option<String>) -> Result<()>
where
  I: IntoIterator<Item = A>,
  A: Into<OsString> + Clone,
{
  let matches = match bin_name {
    Some(bin_name) => Cli::command().bin_name(bin_name),
    None => Cli::command(),
  }
  .get_matches_from(args);

  let res = Cli::from_arg_matches(&matches).map_err(format_error::<Cli>);
  let cli = match res {
    Ok(s) => s,
    Err(e) => e.exit(),
  };

  match cli.command {
    Commands::Build(options) => build::command(options)?,
    Commands::Dev(options) => dev::command(options)?,
    Commands::Info(options) => info::command(options)?,
    Commands::Init(options) => init::command(options)?,
    Commands::Plugin(cli) => plugin::command(cli)?,
    Commands::Signer(cli) => signer::command(cli)?,
  }

  Ok(())
}
/// Run the Tauri CLI with the passed arguments.
///
/// 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`.
Run the Tauri CLI with the passed arguments.
The passed arguments should have the binary argument(s) stripped out before being passed.



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`.
Run the Tauri CLI with the passed arguments . The passed arguments should have the binary argument ( s ) stripped out before being passed . 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 ` .
pub fn run<I, A>(args: I, bin_name: Option<String>) -> Result<()>
where
  I: IntoIterator<Item = A>,
  A: Into<OsString> + Clone,
{
  let matches = match bin_name {
    Some(bin_name) => Cli::command().bin_name(bin_name),
    None => Cli::command(),
  }
  .get_matches_from(args);
  let res = Cli::from_arg_matches(&matches).map_err(format_error::<Cli>);
  let cli = match res {
    Ok(s) => s,
    Err(e) => e.exit(),
  };
  match cli.command {
    Commands::Build(options) => build::command(options)?,
    Commands::Dev(options) => dev::command(options)?,
    Commands::Info(options) => info::command(options)?,
    Commands::Init(options) => init::command(options)?,
    Commands::Plugin(cli) => plugin::command(cli)?,
    Commands::Signer(cli) => signer::command(cli)?,
  }
  Ok(())
}
pub fn run < I , A > ( args : I , bin_name : Option < String > ) -> Result < ( ) > where I : IntoIterator < Item = A > , A : Into < OsString > + Clone , { let matches = match bin_name { Some ( bin_name ) => Cli :: command ( ) . bin_name ( bin_name ) , None => Cli :: command ( ) , } . get_matches_from ( args ) ; let res = Cli :: from_arg_matches ( & matches ) . map_err ( format_error :: < Cli > ) ; let cli = match res { Ok ( s ) => s , Err ( e ) => e . exit ( ) , } ; match cli . command { Commands :: Build ( options ) => build :: command ( options ) ? , Commands :: Dev ( options ) => dev :: command ( options ) ? , Commands :: Info ( options ) => info :: command ( options ) ? , Commands :: Init ( options ) => init :: command ( options ) ? , Commands :: Plugin ( cli ) => plugin :: command ( cli ) ? , Commands :: Signer ( cli ) => signer :: command ( cli ) ? , } Ok ( ( ) ) }
Run the Tauri CLI with the passed arguments.
Run the Tauri CLI with the passed arguments .
args
I
bin_name
Option<String>
args
I
bin_name
Option<String>