Skip to content

Commit bacc814

Browse files
authored
Merge pull request #23 from 100monkeys-ai/fix-dev-command-delegation-15405995362508783060
🧹 Delegate dev command to forge-runtime
2 parents 631edac + 842c28c commit bacc814

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

cli/src/commands/new.rs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ version = "0.1.0"
4545
[build]
4646
entry = "app/root.fx"
4747
output = ".forge/dist"
48-
"#, args.name);
48+
"#,
49+
args.name
50+
);
4951
fs::write(base_path.join("forge.toml"), forge_toml_content)?;
5052

5153
// Write app/root.fx
@@ -78,13 +80,19 @@ export default [
7880
return <h1>Welcome to Forge!</h1>;
7981
}
8082
"#;
81-
fs::write(base_path.join("app").join("pages").join("Home.fx"), home_fx_content)?;
83+
fs::write(
84+
base_path.join("app").join("pages").join("Home.fx"),
85+
home_fx_content,
86+
)?;
8287

8388
// Write schema.fx
8489
fs::write(base_path.join("schema.fx"), "// Empty database schema\n")?;
8590

8691
// Write foundry.lock
87-
fs::write(base_path.join("foundry.lock"), "# foundry.lock — generated by forge, do not edit manually\n")?;
92+
fs::write(
93+
base_path.join("foundry.lock"),
94+
"# foundry.lock — generated by forge, do not edit manually\n",
95+
)?;
8896

8997
crate::output::success(&format!(
9098
"Created {} — run `cd {} && forge dev` to start",

0 commit comments

Comments
 (0)