Skip to main content

Module migration

Module migration 

Source
Expand description

One-time migration of the legacy ~/.ob/ config directory to ~/.oboron/.

Older releases of oboron-cli stored their config at ~/.ob/. The current tooling uses ~/.oboron/. ensure_config_root_migrated detects a leftover ~/.ob/ real-directory, renames it to ~/.oboron/, and leaves a ~/.ob~/.oboron symlink so any older binary still installed on the system reads/writes the same data via the legacy path.

Structs§

MigrationNotice
Returned by ensure_config_root_migrated when an actual migration took place. Callers print this to stderr so users know their config dir moved.

Functions§

ensure_config_root_migrated
If ~/.ob/ exists as a real directory and ~/.oboron/ doesn’t, rename it to ~/.oboron/ and create a ~/.ob~/.oboron symlink for backward compatibility with older binaries. No-op otherwise (already migrated, fresh install, or ~/.ob is a symlink we put there ourselves).