actions_toolkit_sys/exec.rs
1use js_sys::{Array, JsString, Object, Promise};
2use wasm_bindgen::prelude::*;
3
4#[wasm_bindgen(module = "@actions/exec")]
5extern {
6 // FIXME: switch to typed options; requires node typings
7 /// Execute a command and stream the output to the console.
8 #[wasm_bindgen]
9 pub fn exec(command: &JsString, args: Option<&Array>, options: Option<&Object>) -> Promise;
10}