mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
7e59a66fdf
`+story-list` produced janky indentation because the `$-(story wain)` functions encoded linefeeds in the cords of the wain and the printer doesn't like this. Story printing functions have been changed to produce pure wains without linefeeds.
23 lines
758 B
Plaintext
23 lines
758 B
Plaintext
:: story: List unordered commit messages for the given desk, including orphans
|
|
::
|
|
::::
|
|
::
|
|
/- *story
|
|
/$ story-to-txt %story %txt
|
|
::
|
|
:- %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
|
|
?: !(~(has in .^((set ^desk) %cd /(scot %p our)/$/(scot %da now))) desk)
|
|
tang+[leaf+"Error: desk {<desk>} does not exist." ~]
|
|
?: !.^(? %cu pax)
|
|
tang+['Error: No story file found. Please use |story-init to create one.' ~]
|
|
=/ tale .^(story %cx pax)
|
|
=/ tale-text (flop (story-to-txt tale))
|
|
tang+tale-text
|