Add an option to delete only empty albums

This commit is contained in:
Marc Plano-Lesay 2024-12-03 19:09:07 +11:00
parent 0ac02c34c6
commit 776c9b005f
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
3 changed files with 10 additions and 4 deletions

View file

@ -83,7 +83,7 @@ async fn main() -> Result<()> {
AlbumsCommands::AutoCreate {
album_name_separator,
} => auto_create_albums(ctx, album_name_separator.to_string()).await,
AlbumsCommands::Delete {} => delete_albums(ctx).await,
AlbumsCommands::Delete { empty } => delete_albums(ctx, *empty).await,
AlbumsCommands::List {} => list_albums(ctx).await,
},
Commands::Assets { assets_command } => match assets_command {