You've already forked AstralRinth
forked from didirus/AstralRinth
21 lines
384 B
Rust
21 lines
384 B
Rust
use eyre::Result;
|
|
|
|
mod profile;
|
|
mod user;
|
|
|
|
#[derive(argh::FromArgs, Debug)]
|
|
#[argh(subcommand)]
|
|
pub enum Subcommand {
|
|
Profile(profile::ProfileCommand),
|
|
User(user::UserCommand),
|
|
}
|
|
|
|
impl crate::Args {
|
|
pub async fn dispatch(&self) -> Result<()> {
|
|
dispatch!(self.subcommand, (self) => {
|
|
Subcommand::Profile,
|
|
Subcommand::User
|
|
})
|
|
}
|
|
}
|