mirror of
https://github.com/urbit/shrub.git
synced 2024-12-26 05:23:35 +03:00
Update story-remove.hoon
This commit is contained in:
parent
03da1cb4f9
commit
0762b90daa
@ -13,8 +13,7 @@
|
|||||||
=? desk =(*^desk desk) q.bec :: use current desk if user didn't provide
|
=? 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
|
=? 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)
|
?: !(~(has in .^((set ^desk) %cd /(scot %p our)/$/(scot %da now))) desk)
|
||||||
~& >> "Error: desk {<desk>} does not exist."
|
helm-pass+[%d %flog %text "Error: desk {<desk>} does not exist."]
|
||||||
helm-pass+[%d %noop ~]
|
|
||||||
=/ tak=tako:clay
|
=/ tak=tako:clay
|
||||||
?: ?=([%tako tako:clay] cas)
|
?: ?=([%tako tako:clay] cas)
|
||||||
p.cas
|
p.cas
|
||||||
@ -25,8 +24,7 @@
|
|||||||
::
|
::
|
||||||
=/ pax /(scot %p our)/[desk]/(scot %da now)/story
|
=/ pax /(scot %p our)/[desk]/(scot %da now)/story
|
||||||
?: !.^(? %cu pax)
|
?: !.^(? %cu pax)
|
||||||
~& >> "Error: No story file found. Please use |story-init to create one."
|
helm-pass+[%d %flog %text "Error: No story file found. Please use |story-init to create one."]
|
||||||
helm-pass+[%d %noop ~]
|
|
||||||
=/ tale=story .^(story %cx pax)
|
=/ tale=story .^(story %cx pax)
|
||||||
=. tale
|
=. tale
|
||||||
?: =(*prose prz)
|
?: =(*prose prz)
|
||||||
|
Loading…
Reference in New Issue
Block a user