Add a album auto-create command

This commit is contained in:
Marc Plano-Lesay 2024-12-03 16:32:05 +11:00
parent 998bfce68f
commit 0ac02c34c6
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
14 changed files with 323 additions and 2 deletions

View file

@ -78,6 +78,13 @@ pub(crate) enum Commands {
#[derive(Serialize, Subcommand)]
pub(crate) enum AlbumsCommands {
/// Create albums automatically from external libaries folder structure
#[serde(rename = "auto-create")]
AutoCreate {
/// String to use when composing album names from nested folder structures
#[arg(long, default_value = " / ")]
album_name_separator: String,
},
/// Delete all albums
#[serde(rename = "delete")]
Delete {},