Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Update golem-examples and golem-wasm-rpc-stubgen and fix stubgen result #77

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,24 +203,24 @@ async fn async_main(cmd: GolemCommand) -> Result<(), Box<dyn std::error::Error>>
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")))
}
},
};
Expand Down
Loading