diff --git a/wasm-rpc-stubgen/src/lib.rs b/wasm-rpc-stubgen/src/lib.rs index e91df892..f3b872c9 100644 --- a/wasm-rpc-stubgen/src/lib.rs +++ b/wasm-rpc-stubgen/src/lib.rs @@ -288,12 +288,16 @@ pub fn compose(args: ComposeArgs) -> anyhow::Result<()> { Ok(()) } -pub fn initialize_workspace(args: InitializeWorkspaceArgs) -> anyhow::Result<()> { +pub fn initialize_workspace( + args: InitializeWorkspaceArgs, + stubgen_command: &str, + stubgen_prefix: &[&str], +) -> anyhow::Result<()> { make::initialize_workspace( &args.targets, &args.callers, args.wasm_rpc_path_override, - "golem-wasm-rpc-stubgen", - &[], + stubgen_command, + stubgen_prefix, ) } diff --git a/wasm-rpc-stubgen/src/main.rs b/wasm-rpc-stubgen/src/main.rs index c92b4757..d51dbb08 100644 --- a/wasm-rpc-stubgen/src/main.rs +++ b/wasm-rpc-stubgen/src/main.rs @@ -33,7 +33,11 @@ async fn main() { let _ = render_error(compose(compose_args)); } Command::InitializeWorkspace(init_workspace_args) => { - let _ = render_error(initialize_workspace(init_workspace_args)); + let _ = render_error(initialize_workspace( + init_workspace_args, + "golem-wasm-rpc-stubgen", + &[], + )); } } }