mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 00:13:12 +03:00
20 lines
764 B
Plaintext
20 lines
764 B
Plaintext
:: story: (Internal) List all commit messages for the given desk including orphans
|
|
::
|
|
::::
|
|
::
|
|
/- *story
|
|
:- %say
|
|
|= $: [now=@da eny=@uvJ bec=beak]
|
|
[[~] =desk ~]
|
|
==
|
|
=/ our p.bec
|
|
=? desk =(*^desk desk) q.bec :: use current desk if user didn't provide
|
|
=/ cas r.bec :: use case from beak
|
|
=/ pax /(scot %p our)/[desk]/(scot cas)/story
|
|
?. .^(? %cu pax) tang+['Error: No story file found. Please use |story-init to create one.' ~]
|
|
=/ tale=story .^(story %cx pax)
|
|
=/ story-to-mime .^($-(story mime) %cf /(scot %p our)/[desk]/(scot cas)/story/mime)
|
|
=/ tale-mime (story-to-mime tale)
|
|
=/ tale-text `@t`q.q.tale-mime
|
|
:- %tang
|
|
[tale-text ~] |