2023-04-29 12:04:30 +03:00
|
|
|
:: Print diagnostic information about desks.
|
2023-04-13 18:15:03 +03:00
|
|
|
::
|
2023-04-29 12:04:30 +03:00
|
|
|
:: Accepts an optional argument of a list of one or more desks, returns info
|
2023-04-13 18:15:03 +03:00
|
|
|
:: on all desks if no desks are specified.
|
|
|
|
::
|
2023-04-29 12:04:30 +03:00
|
|
|
:: Keyword arguments include =filt and =verb. =filt takes one of %running,
|
2023-04-13 18:15:03 +03:00
|
|
|
:: %suspended, %exists, %exists-not, or %blocking; =verb takes either & or |
|
2023-04-29 12:04:30 +03:00
|
|
|
::
|
2023-04-13 18:15:03 +03:00
|
|
|
:: If both a list of desks and a filter are provided, the output will include
|
2023-04-29 12:04:30 +03:00
|
|
|
:: the desks from the list that match the filter, with the exception of the
|
2023-04-13 18:15:03 +03:00
|
|
|
:: %blocking filter which always returns all desks that match.
|
|
|
|
::
|
2021-08-03 00:23:43 +03:00
|
|
|
/- *hood
|
|
|
|
:- %say
|
2023-04-29 17:05:56 +03:00
|
|
|
|= $: [now=@da * bec=beak]
|
|
|
|
deks=(list desk)
|
|
|
|
[filt=@tas verb=_|]
|
|
|
|
==
|
|
|
|
:- %tang ^- tang
|
|
|
|
?. &(=(~ deks) =(%$ filt))
|
|
|
|
(report-vats p.bec now deks filt verb)
|
|
|
|
%- zing
|
|
|
|
%+ turn
|
|
|
|
%+ sort
|
2023-06-14 23:23:03 +03:00
|
|
|
=/ sed .^((set desk) %cd /(scot %p p.bec)//(scot %da now))
|
2023-04-29 17:13:50 +03:00
|
|
|
(sort ~(tap in sed) |=([a=@ b=@] !(aor a b)))
|
2023-04-29 17:05:56 +03:00
|
|
|
|=([a=desk b=desk] ?|(=(a %kids) =(b %base)))
|
|
|
|
|=(syd=desk (report-vat (report-prep p.bec now) p.bec now syd verb))
|