version -> revision
This commit is contained in:
parent
939bb1c72f
commit
db8dfa6655
2 changed files with 4 additions and 4 deletions
|
@ -8,7 +8,7 @@ use clap::{Subcommand, ValueEnum};
|
||||||
#[derive(Subcommand)]
|
#[derive(Subcommand)]
|
||||||
pub(crate) enum Commands {
|
pub(crate) enum Commands {
|
||||||
/// Convert an old config file into the new format
|
/// Convert an old config file into the new format
|
||||||
Migrate { version: ConfigRevision },
|
Migrate { revision: ConfigRevision },
|
||||||
/// Validate the config file
|
/// Validate the config file
|
||||||
Validate,
|
Validate,
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ pub(crate) enum Error {
|
||||||
|
|
||||||
pub(crate) async fn run(command: Commands) -> Result<(), Error> {
|
pub(crate) async fn run(command: Commands) -> Result<(), Error> {
|
||||||
match command {
|
match command {
|
||||||
Commands::Migrate { version } => migrate::run(version).await?,
|
Commands::Migrate { revision } => migrate::run(revision).await?,
|
||||||
Commands::Validate => validate::run()?,
|
Commands::Validate => validate::run()?,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@ pub(crate) enum MigrationError {
|
||||||
V20240701(#[from] v20240701::Error),
|
V20240701(#[from] v20240701::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(super) async fn run(version: ConfigRevision) -> Result<(), MigrationError> {
|
pub(super) async fn run(revision: ConfigRevision) -> Result<(), MigrationError> {
|
||||||
match version {
|
match revision {
|
||||||
ConfigRevision::V20240701 => v20240701::run().await?,
|
ConfigRevision::V20240701 => v20240701::run().await?,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue