cargo fmt
This commit is contained in:
parent
f04a529e09
commit
355571dd84
1 changed files with 4 additions and 12 deletions
16
src/main.rs
16
src/main.rs
|
@ -13,18 +13,10 @@ async fn main() -> Result<()> {
|
|||
let config = config::resolve(&args).await?;
|
||||
|
||||
let res = match &args.command {
|
||||
args::Commands::Toggle { id, state } => {
|
||||
commands::toggle::exec(config, id, state).await
|
||||
}
|
||||
args::Commands::List => {
|
||||
commands::list::exec(config).await
|
||||
}
|
||||
args::Commands::Inspect { id } => {
|
||||
commands::inspect::exec(config, id).await
|
||||
}
|
||||
args::Commands::Auth => {
|
||||
Err(eyre!("Not yet implemented"))
|
||||
}
|
||||
args::Commands::Toggle { id, state } => commands::toggle::exec(config, id, state).await,
|
||||
args::Commands::List => commands::list::exec(config).await,
|
||||
args::Commands::Inspect { id } => commands::inspect::exec(config, id).await,
|
||||
args::Commands::Auth => Err(eyre!("Not yet implemented")),
|
||||
};
|
||||
|
||||
if let Err(e) = res {
|
||||
|
|
Loading…
Reference in a new issue