Renamed the set_album_photo subcommand to move_photo
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
85ffdfc6af
commit
f8b872a28a
@ -180,7 +180,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||||||
.help("The id of the picture(s) which you want to delete. For multiple ids, use commas."))
|
.help("The id of the picture(s) which you want to delete. For multiple ids, use commas."))
|
||||||
)
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("set_album_photo")
|
SubCommand::with_name("move_photo")
|
||||||
.about("Move the picture to a given album.")
|
.about("Move the picture to a given album.")
|
||||||
.arg(Arg::with_name("photo_id")
|
.arg(Arg::with_name("photo_id")
|
||||||
.required(true)
|
.required(true)
|
||||||
@ -256,7 +256,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||||||
} else if let Some(m) = matches.subcommand_matches("delete_photo") {
|
} else if let Some(m) = matches.subcommand_matches("delete_photo") {
|
||||||
let id = m.value_of("id").unwrap();
|
let id = m.value_of("id").unwrap();
|
||||||
delete_photo(&client, &lychee_session_cookie, id).await;
|
delete_photo(&client, &lychee_session_cookie, id).await;
|
||||||
} else if let Some(m) = matches.subcommand_matches("set_album_photo") {
|
} else if let Some(m) = matches.subcommand_matches("move_photo") {
|
||||||
let i = m.value_of("photo_id").unwrap();
|
let i = m.value_of("photo_id").unwrap();
|
||||||
let a = m.value_of("album_id").unwrap();
|
let a = m.value_of("album_id").unwrap();
|
||||||
set_album_photo(&client, &lychee_session_cookie, i, a).await;
|
set_album_photo(&client, &lychee_session_cookie, i, a).await;
|
||||||
|
Loading…
Reference in New Issue
Block a user