Add a command to list albums
This commit is contained in:
parent
af1af8dce1
commit
fb78298166
5 changed files with 61 additions and 1 deletions
15
src/args.rs
15
src/args.rs
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue