Add a command to list albums

This commit is contained in:
Marc Plano-Lesay 2024-11-24 01:32:17 +01:00
parent af1af8dce1
commit fb78298166
Signed by: kernald
GPG key ID: 66A41B08CC62A6CF
5 changed files with 61 additions and 1 deletions

View file

@ -36,6 +36,14 @@ pub(crate) struct Opts {
#[derive(Serialize, Subcommand)]
pub(crate) enum Commands {
/// Albums related commands
#[serde(rename = "albums")]
Albums {
#[command(subcommand)]
#[serde(flatten)]
albums_command: AlbumsCommands,
},
/// Assets related commands
#[serde(rename = "assets")]
Assets {
@ -68,6 +76,13 @@ pub(crate) enum Commands {
},
}
#[derive(Serialize, Subcommand)]
pub(crate) enum AlbumsCommands {
/// List all albums
#[serde(rename = "list")]
List {},
}
#[derive(Serialize, Subcommand)]
pub(crate) enum AssetsCommands {
/// Delete all assets