shrub/lib/talk.hoon

72 lines
2.0 KiB
Plaintext
Raw Normal View History

2015-01-15 22:32:04 +03:00
::
2015-12-20 14:48:17 +03:00
:::: /hoon#talk#lib
2015-01-15 22:32:04 +03:00
::
:: This file is in the public domain.
::
2015-06-05 04:32:51 +03:00
/? 314
/- talk
!:
2015-01-15 22:32:04 +03:00
::::
::
2015-09-02 03:24:18 +03:00
[. ^talk]
2015-01-15 22:32:04 +03:00
|%
++ main :: main story
2015-12-20 23:50:45 +03:00
|= our/ship ^- cord
2015-01-15 22:32:04 +03:00
=+ can=(clan our)
?+ can %porch
2015-12-09 04:54:26 +03:00
$czar %court
$king %floor
2015-01-15 22:32:04 +03:00
==
2015-06-02 21:36:56 +03:00
::
2015-06-02 02:25:22 +03:00
++ said :: app message
2015-12-20 23:50:45 +03:00
|= {our/@p dap/term now/@da eny/@uvI mes/(list tank)}
2015-06-02 02:25:22 +03:00
:- %talk-command
^- command
:- %publish
|- ^- (list thought)
?~ mes ~
2015-06-06 02:01:44 +03:00
:_ $(mes t.mes, eny (sham eny mes))
^- thought
:+ (shaf %thot eny)
[[[%& our (main our)] [*envelope %pending]] ~ ~]
[now *bouquet [%app dap (crip ~(ram re i.mes))]]
2015-12-09 04:54:26 +03:00
::
2015-09-01 22:35:42 +03:00
++ rend-work-duty
=+ work-stuff
2015-12-20 23:50:45 +03:00
|^ |= due/duty ^- tape
2015-09-01 22:35:42 +03:00
?- -.due
2015-12-09 04:54:26 +03:00
$archive =+(due " -{(tr-id id)} fin.")
$create =+(due " -{(tr-id id.tax)} new: {<title.tax>}")
$change =+(due " -{(tr-id id)} mod {(tr-meat meat)}")
$update
2015-09-01 22:35:42 +03:00
=+ due
2015-09-16 23:47:26 +03:00
" -{(tr-id id)} v{<version>} by {<her>} {(tr-meat meat.due)}"
2015-09-01 22:35:42 +03:00
==
2015-12-20 23:50:45 +03:00
++ tr-id |=(a/@uv (scow %uv (rsh 2 25 a)))
2015-09-16 23:47:26 +03:00
++ tr-term
2015-12-20 23:50:45 +03:00
|= a/term
=+ ^- {typ/tape key/tape}
2015-09-16 23:47:26 +03:00
%+ rash a
;~ (glue hep)
(plus aln)
(plus ;~(pose (cold ' ' hep) next))
==
?+ (crip typ) "{typ} {key}"
2015-12-09 04:54:26 +03:00
$set ":{key}"
$add "+{key}"
2015-09-16 23:47:26 +03:00
==
2015-09-01 22:35:42 +03:00
++ tr-meat
2015-12-20 23:50:45 +03:00
|= feh/flesh ^- tape
2015-09-01 22:35:42 +03:00
?- -.feh
2015-12-09 04:54:26 +03:00
$set-done =+(feh ?:(don (tr-term -.feh) (tr-term %set-undone)))
$set-doer =+(feh "{(tr-term -.feh)} {?~(her "none" <u.her>)}")
$set-date-due =+(feh "{(tr-term -.feh)} {?~(wen "none" <u.wen>)}")
$set-tags =+(feh "{(tr-term -.feh)} {<tag>}")
$set-title =+(feh "{(tr-term -.feh)} {<(trip til)>}")
$set-description =+(feh "{(tr-term -.feh)} {<(trip des)>}")
$add-comment =+ feh
2015-09-09 02:31:42 +03:00
"{(tr-term -.feh)} {(scow %p who)} {<(trip com)>}"
2015-09-01 22:35:42 +03:00
==
--
2015-01-15 22:32:04 +03:00
--