Skip to content

Commit

Permalink
Merge pull request #39 from fluentci-io/fix/display-return-value
Browse files Browse the repository at this point in the history
fix: display wasm function return value
  • Loading branch information
tsirysndr authored Aug 21, 2024
2 parents 28e1d44 + 7f62883 commit b6e304f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ cargo run -p fluentci-engine -- serve
## 📦 Downloads

- `Mac`: arm64: [fluentci-engine_v0.4.9_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.9/fluentci-engine_v0.4.9_aarch64-apple-darwin.tar.gz) intel: [fluentci-engine_v0.4.9_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.9/fluentci-engine_v0.4.9_x86_64-apple-darwin.tar.gz)
- `Linux`: intel: [fluentci-engine_v0.4.9_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.9/fluentci-engine_v0.4.9_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci-engine_v0.4.9_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.9/fluentci-engine_v0.4.9_aarch64-unknown-linux-gnu.tar.gz)
- `Mac`: arm64: [fluentci-engine_v0.4.10_aarch64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_aarch64-apple-darwin.tar.gz) intel: [fluentci-engine_v0.4.10_x86_64-apple-darwin.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_x86_64-apple-darwin.tar.gz)
- `Linux`: intel: [fluentci-engine_v0.4.10_x86_64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_x86_64-unknown-linux-gnu.tar.gz) arm64: [fluentci-engine_v0.4.10_aarch64-unknown-linux-gnu.tar.gz](https://github.com/fluentci-io/fluentci-engine/releases/download/v0.4.10/fluentci-engine_v0.4.10_aarch64-unknown-linux-gnu.tar.gz)

## 📚 Documentation

Expand Down
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MPL-2.0"
name = "fluentci-engine"
readme = "../../README.md"
repository = "https://github.com/fluentci-io/fluentci-engine"
version = "0.4.9"
version = "0.4.10"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
4 changes: 3 additions & 1 deletion crates/cli/src/cmd/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ pub fn call(module: &str, command: &str) -> Result<(), Error> {
let args = command.split_whitespace().skip(1).collect::<Vec<&str>>();
let args = args.join(" ");
match plugin.call::<&str, &str>(func, &args) {
Ok(_) => {}
Ok(res) => {
println!("{}", res);
}
Err(err) => {
println!("{}", err);
std::process::exit(1);
Expand Down

0 comments on commit b6e304f

Please sign in to comment.