CLI command
skarbiec request watch
Show each pending request this decider may answer in a macOS dialog on the vault host and apply the answer.
Invocation#
skarbiec request watch --local --by <uid>Purpose#
Show each pending request this decider may answer in a macOS dialog on the vault host and apply the answer.
Required inputs and options#
- --local, the only channel this build delivers to, and --by, the decider whose requests it shows.
Output and state effects#
- Shows what is asked, why and by whom in the decider's language, with approve and deny; approving asks the lifetime as once, until revoked or a number of hours typed. It waits for the person without a timeout and, between requests, on a FIFO every register writer pokes, so a new request appears as it is filed. Prints ok when it stops.
Refusals#
- A flag other than --local and --by exits 2 (arguments-flag-unknown); without --local or --by exits 2 naming the missing one. A dialog that cannot be started or shown, or an answer it did not offer, stops the watcher naming it (request-dialog-unstarted, request-dialog-unavailable) and every request stays as it was.
- skarbiec.request.watch request-dialog-unstarted — exit 1: showing a request dialog through osascript; fix: run skarbiec request watch --local in the decider's logged-in macOS session, where osascript shows dialogs, or decide from a terminal with skarbiec request approve|deny <request-id> --by <uid>
- skarbiec.request.watch request-dialog-unavailable — exit 1: showing a request dialog through osascript; fix: run skarbiec request watch --local in the decider's logged-in macOS session, where osascript shows dialogs, or decide from a terminal with skarbiec request approve|deny <request-id> --by <uid>
- skarbiec.request.watch request-dialog-answer — exit 1: reading what the {dialog} dialog answered; fix: start skarbiec request watch --local --by <uid> again, or decide from a terminal with skarbiec request approve|deny <request-id> --by <uid>
- skarbiec.request.watch request-dialog-answer-not-text — exit 1: reading what the request dialog answered; fix: start skarbiec request watch --local --by <uid> again, or decide from a terminal with skarbiec request approve|deny <request-id> --by <uid>
- skarbiec.request.watch request-dialog-answer-unshaped — exit 1: reading what the request dialog answered; fix: start skarbiec request watch --local --by <uid> again, or decide from a terminal with skarbiec request approve|deny <request-id> --by <uid>
- skarbiec.request.watch request-words-unreadable — exit 1: reading the dialog's words from the texts bundle built into this skarbiec; fix: install a skarbiec built from a release whose texts/bundle.json reads, or decide from a terminal with skarbiec request approve|deny <request-id> --by <uid>