diff --git a/Cargo.lock b/Cargo.lock index 19be4c1..3616e9d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1785,9 +1785,9 @@ dependencies = [ [[package]] name = "golem-examples" -version = "0.1.11" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "838c16d6d9e6bbacfb31f21ddf1b6881e10064801a306ae5a00e8d21967f77ac" +checksum = "7b4c71f4bf85c07873de5b4894386dcb340ad4b42b099cc90599e961077bd95a" dependencies = [ "Inflector", "derive_more", @@ -1815,9 +1815,9 @@ dependencies = [ [[package]] name = "golem-wasm-rpc" -version = "0.0.11" +version = "0.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00022b15f014c5a4d5484c261f75f78b0d631761c9de877b45873076c5d7ecee" +checksum = "518c081e27efb23da63ee29f05c5d635daa5db441831ee7af86708dfed17b2b8" dependencies = [ "arbitrary", "bigdecimal", @@ -1833,9 +1833,9 @@ dependencies = [ [[package]] name = "golem-wasm-rpc-stubgen" -version = "0.0.11" +version = "0.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "381507b741738ad7cce6dcf37e2855229b4789abeb563d2d42ad6a143a488596" +checksum = "e258572974b59ab958a91e8d71f2f93a1c44771591405ed9d593a22f8c760172" dependencies = [ "anyhow", "cargo-component", diff --git a/Cargo.toml b/Cargo.toml index 1ec5f42..388ec6f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,8 +22,8 @@ clap-verbosity-flag = "2.1.1" derive_more = "0.99.17" futures-util = "0.3.30" golem-client = "0.0.63" -golem-examples = "0.1.11" -golem-wasm-rpc-stubgen = { version = "0.0.11", optional = true } +golem-examples = "0.1.12" +golem-wasm-rpc-stubgen = { version = "0.0.12", optional = true } http = "1.0.0" indoc = "2.0.4" itertools = "0.11.0" diff --git a/src/main.rs b/src/main.rs index 2ab6d0c..74e60c4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -203,24 +203,24 @@ async fn async_main(cmd: GolemCommand) -> Result<(), Box> golem_wasm_rpc_stubgen::Command::Generate(args) => { golem_wasm_rpc_stubgen::generate(args) .map_err(|err| GolemError(format!("{err}"))) - .map(|res| GolemResult::Ok(Box::new(res))) + .map(|_| GolemResult::Ok(Box::new("Done"))) } golem_wasm_rpc_stubgen::Command::Build(args) => golem_wasm_rpc_stubgen::build(args) .await .map_err(|err| GolemError(format!("{err}"))) - .map(|res| GolemResult::Ok(Box::new(res))), + .map(|_| GolemResult::Ok(Box::new("Done"))), golem_wasm_rpc_stubgen::Command::AddStubDependency(args) => { golem_wasm_rpc_stubgen::add_stub_dependency(args) .map_err(|err| GolemError(format!("{err}"))) - .map(|res| GolemResult::Ok(Box::new(res))) + .map(|_| GolemResult::Ok(Box::new("Done"))) } golem_wasm_rpc_stubgen::Command::Compose(args) => golem_wasm_rpc_stubgen::compose(args) .map_err(|err| GolemError(format!("{err}"))) - .map(|res| GolemResult::Ok(Box::new(res))), + .map(|_| GolemResult::Ok(Box::new("Done"))), golem_wasm_rpc_stubgen::Command::InitializeWorkspace(args) => { golem_wasm_rpc_stubgen::initialize_workspace(args, "golem-cli", &["stubgen"]) .map_err(|err| GolemError(format!("{err}"))) - .map(|res| GolemResult::Ok(Box::new(res))) + .map(|_| GolemResult::Ok(Box::new("Done"))) } }, };