Add a libraries command and scan subcommand
This commit is contained in:
parent
2eb4e391c2
commit
af1af8dce1
9 changed files with 182 additions and 1 deletions
15
src/args.rs
15
src/args.rs
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue