Add command to delete albums

This commit is contained in:
Marc Plano-Lesay 2024-11-24 02:01:48 +01:00
parent fb78298166
commit e29b962423
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
7 changed files with 152 additions and 1 deletions

View file

@ -13,6 +13,7 @@ use args::{AlbumsCommands, AssetsCommands, LibrariesCommands, PeopleCommands, Se
use clap::Parser;
use color_eyre::eyre::{Result, WrapErr};
use color_eyre::Section;
use commands::delete_albums::delete_albums;
use commands::delete_assets::delete_assets;
use commands::list_albums::list_albums;
use commands::list_assets::list_assets;
@ -78,6 +79,7 @@ async fn main() -> Result<()> {
match &args.command {
Commands::Albums { albums_command } => match albums_command {
AlbumsCommands::Delete {} => delete_albums(ctx).await,
AlbumsCommands::List {} => list_albums(ctx).await,
},
Commands::Assets { assets_command } => match assets_command {