2015-08-19 22:19:55 +03:00
|
|
|
::
|
|
|
|
:::: /hoon/command/work/mar
|
|
|
|
::
|
2015-09-01 23:56:42 +03:00
|
|
|
/- work
|
2015-08-19 22:19:55 +03:00
|
|
|
!:
|
|
|
|
::::
|
|
|
|
::
|
2015-09-01 23:56:42 +03:00
|
|
|
[work .]
|
2015-08-19 22:19:55 +03:00
|
|
|
|_ 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-20 22:20:14 +03:00
|
|
|
++ ot
|
|
|
|
|* a=(pole ,[@tas fist])
|
|
|
|
|= b=json
|
|
|
|
%. ((^ot a) b)
|
2015-09-01 03:06:12 +03:00
|
|
|
%- slog
|
2015-08-20 22:20:14 +03:00
|
|
|
?+ b ~
|
|
|
|
[%o *]
|
|
|
|
%+ murn `(list ,[@tas fist])`a
|
|
|
|
|= [c=term d=fist] ^- (unit tank)
|
|
|
|
=+ (~(get by p.b) c)
|
|
|
|
?~ - (some >[c (turn (~(tap by p.b)) head)]<)
|
|
|
|
=+ (d u)
|
|
|
|
?~ - (some >[c u]<)
|
|
|
|
~
|
|
|
|
==
|
|
|
|
++ of
|
|
|
|
|* a=(pole ,[@tas fist])
|
|
|
|
|= b=json
|
|
|
|
%. ((of:jo a) b)
|
2015-09-01 03:06:12 +03:00
|
|
|
%- slog
|
2015-08-20 22:20:14 +03:00
|
|
|
?+ b ~
|
|
|
|
[%o *]
|
|
|
|
%+ murn `(list ,[@tas fist])`a
|
|
|
|
|= [c=term d=fist] ^- (unit tank)
|
|
|
|
=+ (~(get by p.b) c)
|
|
|
|
?~ - ~
|
|
|
|
=+ (d u)
|
|
|
|
?~ - (some >[c u]<)
|
|
|
|
~
|
|
|
|
==
|
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)
|
2015-08-22 03:02:35 +03:00
|
|
|
++ coma
|
|
|
|
%- of :~
|
2015-08-27 01:21:21 +03:00
|
|
|
new/task old/(ot id/id dif/uppd ~)
|
2015-08-28 02:50:21 +03:00
|
|
|
sort/(ar id)
|
2015-08-22 03:02:35 +03:00
|
|
|
==
|
2015-08-19 22:19:55 +03:00
|
|
|
++ task
|
2015-08-20 22:20:14 +03:00
|
|
|
%- ot :~
|
2015-08-27 02:20:11 +03:00
|
|
|
::index/ni
|
2015-08-20 23:50:06 +03:00
|
|
|
audience/audi
|
2015-08-21 22:35:36 +03:00
|
|
|
id/id 'date_created'^di
|
|
|
|
version/ni 'date_modified'^di
|
2015-08-27 01:21:21 +03:00
|
|
|
creator/ship doer/(mu ship)
|
2015-08-21 22:35:36 +03:00
|
|
|
tags/(as so) 'date_due'^(mu di)
|
2015-08-20 22:20:14 +03:00
|
|
|
done/(mu di) title/so
|
|
|
|
description/so discussion/(ar (ot date/di ship/ship body/so ~))
|
|
|
|
==
|
2015-08-20 23:50:06 +03:00
|
|
|
++ audi (as stan)
|
|
|
|
++ stan (su ;~((glue fas) ;~(pfix sig fed:ag) urs:ab))
|
2015-08-19 22:19:55 +03:00
|
|
|
++ uppd
|
|
|
|
%- of :~
|
2015-08-27 01:34:26 +03:00
|
|
|
doer/(of release/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-28 02:50:21 +03:00
|
|
|
audience/audi
|
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
|
|
|
==
|
|
|
|
==
|
|
|
|
--
|
|
|
|
--
|
|
|
|
++ 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,
|
2015-08-27 01:21:21 +03:00
|
|
|
:: creator:'fyr',
|
2015-08-19 22:19:55 +03:00
|
|
|
:: tags:['tag'],
|
2015-08-20 04:37:09 +03:00
|
|
|
:: date-due:null,
|
2015-08-20 22:20:14 +03:00
|
|
|
:: done:false,
|
2015-08-19 22:19:55 +03:00
|
|
|
:: title:'Test task',
|
|
|
|
:: description:'The converter owrks right?',
|
|
|
|
:: discussion:[{date:1440011611215,ship:'sondel',body:'hi'}]
|
|
|
|
:: } }
|