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

Commit

Permalink
Update golem-examples and golem-wasm-rpc-stubgen and fix stubgen result
Browse files Browse the repository at this point in the history
  • Loading branch information
vigoo committed Mar 5, 2024
1 parent d031c14 commit 48fe2a9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
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

0 comments on commit 48fe2a9

Please sign in to comment.