pesde/src/cli/commands/config/mod.rs
2025-01-02 22:37:27 +01:00

17 lines
364 B
Rust

use clap::Subcommand;
mod default_index;
#[derive(Debug, Subcommand)]
pub enum ConfigCommands {
/// Configuration for the default index
DefaultIndex(default_index::DefaultIndexCommand),
}
impl ConfigCommands {
pub async fn run(self) -> anyhow::Result<()> {
match self {
ConfigCommands::DefaultIndex(default_index) => default_index.run().await,
}
}
}