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
¶
- action.go
- agent.go
- agent_session.go
- attach.go
- check.go
- completion.go
- config.go
- exec.go
- fetch.go
- gc.go
- host.go
- host_commands.go
- init.go
- job.go
- login.go
- observe.go
- output.go
- project.go
- project_migrate.go
- project_ref.go
- reap.go
- root.go
- runner_container.go
- secret.go
- secret_oauth.go
- start.go
- stop.go
- task.go
- task_hook.go
- task_inspect.go
- version.go
- web.go
- workspace.go
- workspace_apply.go
- workspace_export.go
- workspace_import_home.go
- workspace_init_script.go
- workspace_services.go
Click to show internal directories.
Click to hide internal directories.