Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateProject ¶ added in v0.0.8
func MigrateProject(opts MigrateProjectOptions) error
MigrateProject is the daemon-free implementation of `boid project migrate`. It can be called in-process from the boid start auto-migrate path or from cobra's runProjectMigrate (which is now a thin wrapper).
Types ¶
type MigrateProjectOptions ¶ added in v0.0.8
type MigrateProjectOptions struct {
// Dir is the absolute project root path (parent of .boid/).
Dir string
// Workspace overrides the workspace slug. Empty falls back to the
// project's existing project_workspaces entry, then to the implicit
// default workspace.
Workspace string
// Apply switches from dry-run (false) to actually writing files.
Apply bool
// OnCollision controls secret-key collisions when copying from the old
// namespace into the new one. Empty defaults to "refuse".
OnCollision string
// DBPath / KeyFilePath override the XDG-derived defaults; empty uses
// the defaults so production callers can pass zero-value options.
DBPath string
KeyFilePath string
// Out receives the dry-run / progress text. nil → io.Discard.
Out io.Writer
}
MigrateProjectOptions controls a single project migration run. It is the daemon-free surface that `cmd/start.go --auto-migrate` calls in-process once per affected project, and that `runProjectMigrate` populates from cobra flags.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.