correct open/close wording which was incosistent

This commit is contained in:
lilly 2026-07-23 14:13:30 +02:00
commit d0a865e85a
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g

View file

@ -52,7 +52,7 @@ async fn main() -> eyre::Result<()> {
" Also takes an additional parameter of \"wait\" or \"nowait\"which dictates" " Also takes an additional parameter of \"wait\" or \"nowait\"which dictates"
); );
println!(" whether the CLI exit as soon as the lock operation is queued or whether"); println!(" whether the CLI exit as soon as the lock operation is queued or whether");
println!(" it waits until the lock status changes to open."); println!(" it waits until the lock status changes to closed.");
println!(" Defaults to \"wait\" if not specified."); println!(" Defaults to \"wait\" if not specified.");
println!(); println!();
println!(" unlock <lock> [wait|nowait] -> Unlocks the lock identified with <lock>."); println!(" unlock <lock> [wait|nowait] -> Unlocks the lock identified with <lock>.");
@ -60,7 +60,7 @@ async fn main() -> eyre::Result<()> {
" Also takes an additional parameter of \"wait\" or \"nowait\"which dictates" " Also takes an additional parameter of \"wait\" or \"nowait\"which dictates"
); );
println!(" whether the CLI exit as soon as the lock operation is queued or whether"); println!(" whether the CLI exit as soon as the lock operation is queued or whether");
println!(" it waits until the lock status changes to closed."); println!(" it waits until the lock status changes to open.");
println!(" Defaults to \"wait\" if not specified."); println!(" Defaults to \"wait\" if not specified.");
exit(0); exit(0);
} }
@ -90,7 +90,7 @@ async fn main() -> eyre::Result<()> {
let api = ApiClient::new_from_env()?; let api = ApiClient::new_from_env()?;
let lock = find_lock(&api, &lock_name).await?; let lock = find_lock(&api, &lock_name).await?;
println!("dooris at your service, locking {} now…", lock.name); println!("dooris at your service, unlocking {} now…", lock.name);
api.operate_lock(&lock.id, DesiredLockState::OPEN).await?; api.operate_lock(&lock.id, DesiredLockState::OPEN).await?;
if wait_until_done { if wait_until_done {