mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 10:49:26 +03:00
bd2b4f9acb
:your-app +dbug %state
(cherry picked from commit a7f07866f9
)
33 lines
818 B
Plaintext
33 lines
818 B
Plaintext
:: +dbug: tell /lib/dbug app to print some generic state
|
|
::
|
|
:: :app +dbug
|
|
:: the entire bowl
|
|
:: :app +dbug [direction] [specifics]
|
|
:: all in subs matching the parameters
|
|
:: direction: %incoming or %outgoing
|
|
:: specifics:
|
|
:: [%ship ~ship] subscriptions to/from this ship
|
|
:: [%path /path] subscriptions on path containing /path
|
|
:: [%wire /wire] subscriptions on wire containing /wire
|
|
:: [%term %name] subscriptions to app %name
|
|
::
|
|
/+ *dbug
|
|
::
|
|
:- %say
|
|
|= $: :: environment
|
|
::
|
|
*
|
|
:: inline arguments
|
|
::
|
|
args=?(~ [what=?(%bowl %state) ~] [=what =about ~])
|
|
:: named arguments
|
|
::
|
|
~
|
|
==
|
|
:- %dbug
|
|
?- args
|
|
~ [%bowl *about]
|
|
[@ ~] [what.args *about]
|
|
[@ * ~] [what about]:args
|
|
==
|