/// Calls the given command and evaluates its output to the JS promise described by the `callback` and `error` function names.
Calls the given command and evaluates its output to the JS promise described by the `callback` and `error` function names.
Calls the given command and evaluates its output to the JS promise described by the ` callback ` and ` error ` function names .
pub async fn call<D: ApplicationDispatcherExt>(
  webview_manager: &crate::WebviewManager<D>,
  command: String,
  args: Vec<String>,
  callback: String,
  error: String,
) {
  execute_promise(
    webview_manager,
    async move { api::command::get_output(command, args, Stdio::piped()).map_err(|e| e.into()) },
    callback,
    error,
  )
  .await;
}
pub async fn call < D : ApplicationDispatcherExt > ( webview_manager : & crate :: WebviewManager < D > , command : String , args : Vec < String > , callback : String , error : String , ) { execute_promise ( webview_manager , async move { api :: command :: get_output ( command , args , Stdio :: piped ( ) ) . map_err ( | e | e . into ( ) ) } , callback , error , ) . await ; }
Calls the given command and evaluates its output to the JS promise described by the `callback` and `error` function names.
Calls the given command and evaluates its output to the JS promise described by the ` callback ` and ` error ` function names .
webview_manager
&crate::WebviewManager<D>
command
String
args
Vec<String>
callback
String
error
String