Skip to content
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
10 changes: 1 addition & 9 deletions src/new/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}'"),
}
}
Expand Down Expand Up @@ -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<String, String> = PATH_TO_CONTENT
.iter()
.filter_map(|(path, content)| {
Expand Down
Original file line number Diff line number Diff line change
@@ -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 {}
Expand Down
2 changes: 2 additions & 0 deletions src/new/templates/rust/no-ui/hyperapp-echo/pkg/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down