mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 04:41:37 +03:00
story: add generator +story-list
This commit is contained in:
parent
163ed030d4
commit
808e6ce763
18
pkg/arvo/gen/story-list.hoon
Normal file
18
pkg/arvo/gen/story-list.hoon
Normal file
@ -0,0 +1,18 @@
|
||||
::
|
||||
::::
|
||||
::
|
||||
:- %say
|
||||
|= $: [now=@da eny=@uvJ bec=beak]
|
||||
[[syd=desk ~] ~]
|
||||
==
|
||||
::
|
||||
:: List all commit messages for the given desk
|
||||
::
|
||||
=/ our p.bec
|
||||
=/ story=(map tako:clay [@t @t])
|
||||
.^((map tako:clay [@t @t]) %cx /(scot %p our)/[syd]/(scot %da now)/story)
|
||||
=/ story-to-mime .^($-((map tako:clay [@t @t]) mime) %cf /(scot %p our)/[syd]/(scot %da now)/story/mime)
|
||||
=/ story-mime (story-to-mime story)
|
||||
=/ story-text `@t`q.q.story-mime
|
||||
:- %tang
|
||||
[story-text ~]
|
Loading…
Reference in New Issue
Block a user