correct open/close wording which was incosistent
This commit is contained in:
parent
a750a67d17
commit
d0a865e85a
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue