Add a libraries command and scan subcommand

This commit is contained in:
Marc Plano-Lesay 2024-11-17 15:31:12 +01:00
parent 2eb4e391c2
commit af1af8dce1
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
9 changed files with 182 additions and 1 deletions

View file

@ -44,6 +44,14 @@ pub(crate) enum Commands {
assets_command: AssetsCommands,
},
/// Libraries related commands
#[serde(rename = "libaries")]
Libraries {
#[command(subcommand)]
#[serde(flatten)]
libraries_command: LibrariesCommands,
},
/// People related commands
#[serde(rename = "people")]
People {
@ -78,6 +86,13 @@ pub(crate) enum AssetsCommands {
},
}
#[derive(Serialize, Subcommand)]
pub(crate) enum LibrariesCommands {
/// Scan all libraries
#[serde(rename = "scan")]
Scan {},
}
#[derive(Serialize, Subcommand)]
pub(crate) enum PeopleCommands {
/// Synchronises date of births from a vcard file