Files
Rocketmc/theseus_cli/src/subcommands/mod.rs
Danielle b223dc7cba Authentication (#37)
* Initial authentication implementation

* Store user info in the database, improve encapsulation in profiles

* Add user list, remove unused dependencies, add spantraces

* Implement user remove, update UUID crate

* Add user set-default

* Revert submodule macro usage

* Make tracing significantly less verbose
2022-07-15 08:39:38 -07:00

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
})
}
}