Skip to content

Commit a3a2b0c

Browse files
Update concore_cli/commands/init.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e17ad45 commit a3a2b0c

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

concore_cli/commands/init.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,17 @@ def init_project_interactive(name, selected_langs, console):
270270
console.print(f"[cyan]Creating project:[/cyan] {name}")
271271

272272
project_path.mkdir()
273-
src_path = project_path / "src"
274-
src_path.mkdir()
275-
276-
# workflow.graphml
277-
workflow_file = project_path / "workflow.graphml"
278-
workflow_file.write_text(_build_graphml(name, selected_langs))
273+
workflow_file.write_text(_build_graphml(name, selected_langs), encoding="utf-8")
279274

280275
# one source stub per selected language
281276
for lang_key in selected_langs:
282277
info = LANGUAGE_NODES[lang_key]
278+
(src_path / info["filename"]).write_text(info["stub"], encoding="utf-8")
279+
280+
# README
281+
(project_path / "README.md").write_text(
282+
README_TEMPLATE.format(project_name=name),
283+
encoding="utf-8",
283284
(src_path / info["filename"]).write_text(info["stub"])
284285

285286
# README

0 commit comments

Comments
 (0)