migrate

The migrate subcommand — imports legacy data into the current project store.
Name Summary
discover Auto-discovery of legacy v0.4 .gest/ data directories.
v0_4 v0.4.x flat-file migration logic.

enum Version

source

enum Version

Source format version to migrate from.

Variant Description
V0_4 v0.4.x flat-file .gest/ directory format.

Implements Clone, Debug, ValueEnum.

struct Command

source

pub struct Command

Import data from a previous gest version into the current project store.

Field Type Description
from Version The source format version to migrate from.
path Option<PathBuf> Path to the legacy data directory (defaults to auto-discovery).

Implements FromArgMatches, Args, Debug.

Command::call

source

pub async fn call(&self, context: &AppContext) -> Result<(), Error>

Run the migration for the selected source version.

Parameter Type Description
context &AppContext the application context: settings, store and current project
returns Result<(), Error> Ok(()) when the command succeeds, or the error that stopped it.