diff --git a/src/new/mod.rs b/src/new/mod.rs index 234658a2..497b4440 100644 --- a/src/new/mod.rs +++ b/src/new/mod.rs @@ -70,7 +70,7 @@ impl From<&String> for Template { "echo" => Template::Echo, "fibonacci" => Template::Fibonacci, "file-transfer" => Template::FileTransfer, - "hyperapp-echo" => Template::HyperappEcho, + "hyperapp-echo" => Template::HyperappEcho, _ => panic!("kit: template must be 'blank', 'chat', 'echo', 'fibonacci', or 'hyperapp-echo'; not '{s}'"), } } @@ -318,14 +318,6 @@ pub fn execute( ); let ui_prefix = format!("{}/{}/", ui_infix, template.to_string()); let test_prefix = format!("test/{}/", template.to_string()); - - println!("DEBUG: PATH_TO_CONTENT keys related to hyperapp-echo:"); - for (path, _) in PATH_TO_CONTENT.iter() { - if path.contains("hyperapp-echo") { - println!(" {}", path); - } - } - let mut path_to_content: HashMap = PATH_TO_CONTENT .iter() .filter_map(|(path, content)| { diff --git a/src/new/templates/rust/no-ui/hyperapp-echo/hyperapp-echo/src/lib.rs b/src/new/templates/rust/no-ui/hyperapp-echo/hyperapp-echo/src/lib.rs index d126a45a..7369d5df 100644 --- a/src/new/templates/rust/no-ui/hyperapp-echo/hyperapp-echo/src/lib.rs +++ b/src/new/templates/rust/no-ui/hyperapp-echo/hyperapp-echo/src/lib.rs @@ -1,6 +1,6 @@ use serde::{Serialize, Deserialize}; use hyperprocess_macro::hyperprocess; - +use hyperware_process_lib::println; #[derive(Default, Debug, Serialize, Deserialize)] pub struct HyperappEchoState {} diff --git a/src/new/templates/rust/no-ui/hyperapp-echo/pkg/manifest.json b/src/new/templates/rust/no-ui/hyperapp-echo/pkg/manifest.json index 9f8c6d73..98f17d2a 100644 --- a/src/new/templates/rust/no-ui/hyperapp-echo/pkg/manifest.json +++ b/src/new/templates/rust/no-ui/hyperapp-echo/pkg/manifest.json @@ -8,12 +8,14 @@ "homepage:homepage:sys", "http-client:distro:sys", "http-server:distro:sys", + "terminal:terminal:sys", "vfs:distro:sys" ], "grant_capabilities": [ "homepage:homepage:sys", "http-client:distro:sys", "http-server:distro:sys", + "terminal:terminal:sys", "vfs:distro:sys" ], "public": false