mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-20 03:43:47 +01:00
17 lines
364 B
Rust
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,
|
|
}
|
|
}
|
|
}
|