fishctl/src/command/config/migrate.rs
2024-06-20 08:17:13 +09:00

19 lines
403 B
Rust

//! `config migrate` subcommand
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(())
}