2022-02-19 01:40:55 +03:00
|
|
|
:: story: (Internal) List all commit messages for the given desk including orphans
|
2021-11-26 01:02:29 +03:00
|
|
|
::
|
|
|
|
::::
|
|
|
|
::
|
2022-01-30 23:58:35 +03:00
|
|
|
/- *story
|
2021-11-26 01:02:29 +03:00
|
|
|
:- %say
|
|
|
|
|= $: [now=@da eny=@uvJ bec=beak]
|
2022-02-06 04:44:26 +03:00
|
|
|
[[~] =desk ~]
|
2021-11-26 01:02:29 +03:00
|
|
|
==
|
2022-02-06 04:44:26 +03:00
|
|
|
=/ our p.bec
|
|
|
|
=? desk =(*^desk desk) q.bec :: use current desk if user didn't provide
|
2022-02-19 02:20:17 +03:00
|
|
|
=/ cas r.bec :: use case from beak
|
|
|
|
=/ pax /(scot %p our)/[desk]/(scot cas)/story
|
2022-02-22 06:13:15 +03:00
|
|
|
?: !(~(has in .^((set ^desk) %cd /(scot %p our)/$/(scot %da now))) desk)
|
|
|
|
tang+[leaf+"Error: desk {<desk>} does not exist." ~]
|
2022-02-19 02:51:37 +03:00
|
|
|
?: !.^(? %cu pax) tang+['Error: No story file found. Please use |story-init to create one.' ~]
|
2022-02-19 02:20:17 +03:00
|
|
|
=/ tale=story .^(story %cx pax)
|
|
|
|
=/ story-to-mime .^($-(story mime) %cf /(scot %p our)/[desk]/(scot cas)/story/mime)
|
2022-02-06 04:44:26 +03:00
|
|
|
=/ tale-mime (story-to-mime tale)
|
|
|
|
=/ tale-text `@t`q.q.tale-mime
|
2021-11-26 01:02:29 +03:00
|
|
|
:- %tang
|
2022-01-21 00:01:01 +03:00
|
|
|
[tale-text ~]
|