//! Handler for `mcptest migrate`.

use anyhow::Result;

use crate::cli::args::migrate::MigrateArgs as CliMigrateArgs;
use crate::commands;

/// Map the CLI args struct to [`commands::MigrateArgs`] and run.
pub(crate) fn migrate_command(args: CliMigrateArgs) -> Result<i32> {
    commands::run_migrate(commands::MigrateArgs {
        to: args.to,
        paths: args.paths,
        write: args.write,
    })
}
