mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 11:40:11 +03:00
dbug: support app state printing
:your-app +dbug %state
This commit is contained in:
parent
da6f27c55c
commit
a7f07866f9
@ -19,11 +19,14 @@
|
|||||||
*
|
*
|
||||||
:: inline arguments
|
:: inline arguments
|
||||||
::
|
::
|
||||||
args=?(~ [=what =about ~])
|
args=?(~ [what=?(%bowl %state) ~] [=what =about ~])
|
||||||
:: named arguments
|
:: named arguments
|
||||||
::
|
::
|
||||||
~
|
~
|
||||||
==
|
==
|
||||||
:- %dbug
|
:- %dbug
|
||||||
?~ args [%bowl *about]
|
?- args
|
||||||
[what.args about.args]
|
~ [%bowl *about]
|
||||||
|
[@ ~] [what.args *about]
|
||||||
|
[@ * ~] [what about]:args
|
||||||
|
==
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|%
|
|%
|
||||||
+$ what
|
+$ what
|
||||||
$? %bowl
|
$? %bowl
|
||||||
|
%state
|
||||||
%incoming
|
%incoming
|
||||||
%outgoing
|
%outgoing
|
||||||
==
|
==
|
||||||
@ -31,12 +32,14 @@
|
|||||||
[cards this]
|
[cards this]
|
||||||
=/ dbug
|
=/ dbug
|
||||||
!<([=what =about] vase)
|
!<([=what =about] vase)
|
||||||
=; out
|
=; out=^vase
|
||||||
((slog >out< ~) [~ this])
|
((slog (sell out) ~) [~ this])
|
||||||
?- what.dbug
|
?- what.dbug
|
||||||
%bowl bowl
|
%bowl !>(bowl)
|
||||||
|
%state on-save:ag
|
||||||
::
|
::
|
||||||
%incoming
|
%incoming
|
||||||
|
!>
|
||||||
%+ murn ~(tap by sup.bowl)
|
%+ murn ~(tap by sup.bowl)
|
||||||
|= sub=[=duct [=ship =path]]
|
|= sub=[=duct [=ship =path]]
|
||||||
^- (unit _sub)
|
^- (unit _sub)
|
||||||
@ -51,6 +54,7 @@
|
|||||||
==
|
==
|
||||||
::
|
::
|
||||||
%outgoing
|
%outgoing
|
||||||
|
!>
|
||||||
%+ murn ~(tap by wex.bowl)
|
%+ murn ~(tap by wex.bowl)
|
||||||
|= sub=[[=wire =ship =term] [acked=? =path]]
|
|= sub=[[=wire =ship =term] [acked=? =path]]
|
||||||
^- (unit _sub)
|
^- (unit _sub)
|
||||||
|
Loading…
Reference in New Issue
Block a user