pub async fn migrate_storage(
project_dir: &Path,
target: StorageBackend,
) -> Result<MigrateOutcome>Expand description
Migrate from the current backend to target and switch the save location of config.toml.
Return Error::NotInitialized when .pinto/config.toml does not exist. If target is
already active, return MigrateOutcome::AlreadyUsing without changing anything.