fishctl/src/command/config/migrate.rs

17 lines
370 B
Rust

mod v20240701;
use super::ConfigVersion;
#[derive(thiserror::Error, Debug)]
pub(crate) enum ConfigMigrateError {
#[error(transparent)]
V20240701(#[from] v20240701::Error),
}
pub(super) async fn run(version: ConfigVersion) -> Result<(), ConfigMigrateError> {
match version {
ConfigVersion::V20240701 => v20240701::run().await?,
}
Ok(())
}