Merge pull request #86 from vessenes/fix/install-copy-formulas
fix(install): Copy embedded formulas to new installations
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
"github.com/steveyegge/gastown/internal/beads"
|
||||
"github.com/steveyegge/gastown/internal/config"
|
||||
"github.com/steveyegge/gastown/internal/deps"
|
||||
"github.com/steveyegge/gastown/internal/formula"
|
||||
"github.com/steveyegge/gastown/internal/session"
|
||||
"github.com/steveyegge/gastown/internal/style"
|
||||
"github.com/steveyegge/gastown/internal/templates"
|
||||
@@ -196,6 +197,14 @@ func runInstall(cmd *cobra.Command, args []string) error {
|
||||
fmt.Printf(" %s Could not initialize town beads: %v\n", style.Dim.Render("⚠"), err)
|
||||
} else {
|
||||
fmt.Printf(" ✓ Initialized .beads/ (town-level beads with hq- prefix)\n")
|
||||
|
||||
// Provision embedded formulas to .beads/formulas/
|
||||
if count, err := formula.ProvisionFormulas(absPath); err != nil {
|
||||
// Non-fatal: formulas are optional, just convenience
|
||||
fmt.Printf(" %s Could not provision formulas: %v\n", style.Dim.Render("⚠"), err)
|
||||
} else if count > 0 {
|
||||
fmt.Printf(" ✓ Provisioned %d formulas\n", count)
|
||||
}
|
||||
}
|
||||
|
||||
// Create town-level agent beads (Mayor, Deacon) and role beads.
|
||||
|
||||
Reference in New Issue
Block a user