From ba6d861b3950a9eda6768def07516fd6ec22bbb7 Mon Sep 17 00:00:00 2001 From: Daniel Vigovszky Date: Fri, 26 Apr 2024 12:01:55 +0200 Subject: [PATCH] Update to golem-examples 0.2.0 --- Cargo.lock | 8 ++++---- golem-cli/Cargo.toml | 2 +- golem-cli/src/examples.rs | 6 +++--- golem-cli/src/main.rs | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 64549e3804..d66fbf615e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3310,9 +3310,9 @@ dependencies = [ [[package]] name = "golem-examples" -version = "0.1.15" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "460abdb7e15ef1d411ed52d76d7a992196cf2d3bf8a7473ab71152b53194d1b5" +checksum = "34a27ab25e9419b62d989b0d210a8080fd865ace0e559ea5ed1f31ad4bc26ea5" dependencies = [ "Inflector", "cargo_metadata", @@ -3511,9 +3511,9 @@ dependencies = [ [[package]] name = "golem-wit" -version = "0.2.6" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e3c4726ba84c67f21b6636d6b93f4f75ee2aedba42883da66e4c7aa913079e9" +checksum = "d22d012692cc1acaea089d5fb577ceac478fdbf0d6b8f24150eea29e9e7ff5ca" [[package]] name = "golem-worker-executor" diff --git a/golem-cli/Cargo.toml b/golem-cli/Cargo.toml index 95137be0b9..3ec26e6616 100644 --- a/golem-cli/Cargo.toml +++ b/golem-cli/Cargo.toml @@ -25,7 +25,7 @@ clap-verbosity-flag = "2.1.1" derive_more = "0.99.17" dirs = "5.0.1" futures-util = { workspace = true } -golem-examples = "0.1.15" +golem-examples = "0.2.0" golem-wasm-ast = { workspace = true } golem-wasm-rpc = { workspace = true, features = ["text"] } golem-wasm-rpc-stubgen = { version = "0.0.22", optional = true } diff --git a/golem-cli/src/examples.rs b/golem-cli/src/examples.rs index 319eac8a8f..d881e88fa6 100644 --- a/golem-cli/src/examples.rs +++ b/golem-cli/src/examples.rs @@ -15,7 +15,7 @@ use std::env; use golem_examples::model::{ - ExampleName, ExampleParameters, GuestLanguage, GuestLanguageTier, PackageName, TemplateName, + ComponentName, ExampleName, ExampleParameters, GuestLanguage, GuestLanguageTier, PackageName, }; use golem_examples::*; @@ -23,7 +23,7 @@ use crate::model::{ExampleDescription, GolemError, GolemResult}; pub fn process_new( example_name: ExampleName, - template_name: TemplateName, + component_name: ComponentName, package_name: Option, ) -> Result { let examples = GolemExamples::list_all_examples(); @@ -34,7 +34,7 @@ pub fn process_new( match GolemExamples::instantiate( example, ExampleParameters { - template_name, + component_name, package_name: package_name .unwrap_or(PackageName::from_string("golem:component").unwrap()), target_path: cwd, diff --git a/golem-cli/src/main.rs b/golem-cli/src/main.rs index 5757d323a6..f3f4d7bde5 100644 --- a/golem-cli/src/main.rs +++ b/golem-cli/src/main.rs @@ -66,7 +66,7 @@ enum Command { /// The new component's name #[arg(short, long)] - component_name: golem_examples::model::TemplateName, + component_name: golem_examples::model::ComponentName, /// The package name of the generated component (in namespace:name format) #[arg(short, long)]