Set up ability to run commands from the terminal

This commit is contained in:
Andrew Miner
2025-10-06 20:57:46 -06:00
parent a8b6e6b15e
commit 4637137152
18 changed files with 231 additions and 49 deletions
+4 -1
View File
@@ -6,6 +6,9 @@ from tungston.generator.markdown.report import Report
class MineralReport(Report):
def __init__(self, world:World):
super().__init__("minerals.md", world)
def build(self):
for mineral in self.world.minerals.all():
self.line(f"# Mineral: {mineral.name}")
@@ -13,7 +16,7 @@ class MineralReport(Report):
self.indent()
for replacement in mineral.replacements:
self.line(str(replacement))
self.text("* ").line(str(replacement))
self.outdent()
self.line()