Skip to content

v0.15.0 — structured fugo init (ui/ + fugo.toml + git)

Choose a tag to compare

@sazardev sazardev released this 09 Jun 23:38
db1691f

Smarter project bootstrap

fugo init now scaffolds a recommended, formalized project structure and initializes git:

myapp/
├─ main.go        # theme + fugo.RunStandalone(fugo.ConfigOptions("fugo.toml"), ui.Build)
├─ ui/home.go     # package ui — your screens
├─ fugo.toml      # window + gRPC config (read by the CLI and the app)
├─ bin/ dist/     # build output (gitignored)
├─ logs/          # fugo run → logs/run.log (gitignored)
├─ README.md
└─ .gitignore
  • fugo.toml — declarative [window] / [server] config, read via the new fugo.ConfigOptions("fugo.toml") (and by fugo run/build); editable without recompiling Go.
  • New dependency-free config package shared by the runtime and the CLI.
  • fugo run defaults its address to [server] addr (override with --addr) and tees runtime logs to logs/run.log; fugo build ships fugo.toml into dist/.
  • git init + initial commit on scaffold (--no-git to skip).

Full diff: v0.14.0...v0.15.0