2022-03-11 20:08:40 +03:00
|
|
|
:: story: Remove any commit message(s) for a given commit
|
|
|
|
::
|
|
|
|
:: Optionally targeting a specific desk or prose
|
2021-11-27 04:53:52 +03:00
|
|
|
::
|
|
|
|
::::
|
|
|
|
::
|
2022-01-25 22:54:55 +03:00
|
|
|
/- *story
|
2021-11-27 04:53:52 +03:00
|
|
|
:- %say
|
|
|
|
|= $: [now=@da eny=@uvJ bec=beak]
|
2022-02-22 06:13:15 +03:00
|
|
|
[[cas=cash ~] =desk prz=prose ~]
|
2021-11-27 04:53:52 +03:00
|
|
|
==
|
2022-02-22 06:13:15 +03:00
|
|
|
=/ our p.bec
|
|
|
|
=? desk =(*^desk desk) q.bec :: use current desk if user didn't provide
|
|
|
|
=? cas =(*case cas) r.bec :: use case from beak if cas not provided
|
|
|
|
?: !(~(has in .^((set ^desk) %cd /(scot %p our)/$/(scot %da now))) desk)
|
2023-05-05 00:25:39 +03:00
|
|
|
helm-pass+[%d %flog %text "Error: desk {<desk>} does not exist."]
|
2022-02-23 02:33:38 +03:00
|
|
|
=/ tak=tako:clay
|
2022-02-19 01:49:17 +03:00
|
|
|
?: ?=([%tako tako:clay] cas)
|
|
|
|
p.cas
|
2022-02-23 02:33:38 +03:00
|
|
|
?: !.^(? %cs /(scot %p our)/[desk]/(scot cas)/case)
|
|
|
|
~& >> "Error: invalid case {<cas>} provided"
|
|
|
|
!!
|
2022-02-19 01:49:17 +03:00
|
|
|
.^(tako:clay %cs /(scot %p our)/[desk]/(scot cas)/tako/~)
|
|
|
|
::
|
2022-02-19 02:51:37 +03:00
|
|
|
=/ pax /(scot %p our)/[desk]/(scot %da now)/story
|
|
|
|
?: !.^(? %cu pax)
|
2023-05-05 00:25:39 +03:00
|
|
|
helm-pass+[%d %flog %text "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)
|
2022-02-06 04:44:26 +03:00
|
|
|
=. tale
|
|
|
|
?: =(*prose prz)
|
|
|
|
(~(del by tale) tak)
|
|
|
|
(~(del ju tale) tak prz)
|
2021-11-27 04:53:52 +03:00
|
|
|
:- %helm-pass
|
2023-05-05 00:25:39 +03:00
|
|
|
[%c [%info desk %& [/story %ins story+!>(tale)]~]]
|