gedaechtnas/gdn-cli/src/commands.rs
2025-02-19 14:00:25 +01:00

18 lines
310 B
Rust

mod migrate;
use clap::Parser;
use crate::Environment;
#[derive(Debug, Parser)]
pub enum Command {
Migrate(migrate::Command),
}
impl Command {
pub fn run(self, env: &Environment) -> anyhow::Result<()> {
match self {
Self::Migrate(command) => command.run(env),
}
}
}