Add a album auto-create command
This commit is contained in:
parent
998bfce68f
commit
0ac02c34c6
14 changed files with 323 additions and 2 deletions
|
@ -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::auto_create_albums::auto_create_albums;
|
||||
use commands::delete_albums::delete_albums;
|
||||
use commands::delete_assets::delete_assets;
|
||||
use commands::list_albums::list_albums;
|
||||
|
@ -79,6 +80,9 @@ async fn main() -> Result<()> {
|
|||
|
||||
match &args.command {
|
||||
Commands::Albums { albums_command } => match albums_command {
|
||||
AlbumsCommands::AutoCreate {
|
||||
album_name_separator,
|
||||
} => auto_create_albums(ctx, album_name_separator.to_string()).await,
|
||||
AlbumsCommands::Delete {} => delete_albums(ctx).await,
|
||||
AlbumsCommands::List {} => list_albums(ctx).await,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue