:: story: Remove any commit message(s) for a given commit :: :: Optionally targeting a specific desk or prose :: :::: :: /- *story :- %say |= $: [now=@da eny=@uvJ bec=beak] [[cas=cash ~] =desk prz=prose ~] == =/ 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) helm-pass+[%d %flog %text "Error: desk {} does not exist."] =/ tak=tako:clay ?: ?=([%tako tako:clay] cas) p.cas ?: !.^(? %cs /(scot %p our)/[desk]/(scot cas)/case) ~& >> "Error: invalid case {} provided" !! .^(tako:clay %cs /(scot %p our)/[desk]/(scot cas)/tako/~) :: =/ pax /(scot %p our)/[desk]/(scot %da now)/story ?: !.^(? %cu pax) helm-pass+[%d %flog %text "Error: No story file found. Please use |story-init to create one."] =/ tale=story .^(story %cx pax) =. tale ?: =(*prose prz) (~(del by tale) tak) (~(del ju tale) tak prz) :- %helm-pass [%c [%info desk %& [/story %ins story+!>(tale)]~]]