shrub/mar/work/command.hoon

71 lines
1.7 KiB
Plaintext
Raw Normal View History

2015-08-19 22:19:55 +03:00
::
:::: /hoon/command/work/mar
::
/- *work
!:
::::
::
|_ mad=command
++ grab
|% ++ noun command
++ json
=> [jo ..command]
=< (corl need (cu |=(a=command a) coma))
|%
++ as
:: |*(a=fist (cu sa (ar a))) :: XX types
|* a=fist
%- cu :_ (ar a)
~(gas in *(set ,_(need *a)))
2015-08-19 22:44:33 +03:00
++ id (ci (slat %uv) so)
2015-08-19 22:19:55 +03:00
++ ship (su fed:ag)
++ coma (of new/task old/(ot id/id dif/uppd ~) sort/(ar id) ~)
++ task
2015-08-20 04:37:09 +03:00
%^ ot
:- %task
%- ot :~
id/id date-created/di
version/ni date-modified/di
owner/ship status/(ci (soft status) so)
tags/(as so) date-due/(mu di)
done/(mu di) title/so
description/so discussion/(ar (ot date/di ship/ship body/so ~))
==
audience/(as (ot ship/ship span/so ~))
~
2015-08-19 22:19:55 +03:00
++ uppd
%- of :~
own/(of announce/ul claim/ul ~)
2015-08-20 04:37:09 +03:00
add/(of comment/so ~)
2015-08-19 22:19:55 +03:00
:- %set
%- of :~
2015-08-20 04:37:09 +03:00
date-due/(mu di)
2015-08-19 22:19:55 +03:00
title/so
description/so
tags/(as so)
2015-08-20 04:37:09 +03:00
done/bo
2015-08-19 22:19:55 +03:00
audience/(as (ot ship/ship span/so ~))
==
==
--
--
++ grow
|%
++ elem ;pre: {(zing `wall`(turn (wash 0^120 >mad<) |=(a=tape ['\0a' a])))}
--
--
:: {new: {
2015-08-19 22:44:33 +03:00
:: id:'0vaof.6df9u.2agc3.d0dp1',
2015-08-19 22:19:55 +03:00
:: date-created:1440011611215,
:: version:1,
:: date-modified:1440011611215,
:: owner:'fyr',
:: status:'gave',
:: tags:['tag'],
2015-08-20 04:37:09 +03:00
:: date-due:null,
:: done:XX
2015-08-19 22:19:55 +03:00
:: title:'Test task',
:: description:'The converter owrks right?',
:: discussion:[{date:1440011611215,ship:'sondel',body:'hi'}]
:: } }