mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-03 04:40:50 +03:00
spider: move imps to /imp
This commit is contained in:
parent
957aa99d9f
commit
7dcce421e7
@ -25,7 +25,7 @@
|
||||
=^ cards state
|
||||
?+ mark (handle-poke:def mark vase)
|
||||
%spider-imput (handle-poke-imput:sc !<(imput vase))
|
||||
%spider-start (handle-start-imp:sc !<([imp-name path] vase))
|
||||
%spider-start (handle-start-imp:sc !<([imp-name term] vase))
|
||||
==
|
||||
[cards this]
|
||||
::
|
||||
@ -55,14 +55,13 @@
|
||||
(take-input imp-name ~ %sign wire sign-arvo)
|
||||
::
|
||||
++ handle-start-imp
|
||||
|= [=imp-name =path]
|
||||
|= [=imp-name =term]
|
||||
^- (quip card ^state)
|
||||
?: (~(has by state) imp-name)
|
||||
~| [%already-started imp-name]
|
||||
!!
|
||||
=/ =card
|
||||
=/ =beam (need (de-beam:format path))
|
||||
=/ =schematic:ford [%core [p q]:beam hoon+s.beam]
|
||||
=/ =schematic:ford [%core [our.bowl %home] /hoon/[term]/imp]
|
||||
[%pass /build/[imp-name] %arvo %f %build live=%.y schematic]
|
||||
[[card ~] state]
|
||||
::
|
||||
|
@ -1,3 +1,3 @@
|
||||
:- %say
|
||||
|= [* [=term =path ~] ~]
|
||||
[%spider-start term path]
|
||||
|= [* [name=term where=term ~] ~]
|
||||
[%spider-start name where]
|
||||
|
9
pkg/arvo/imp/first.hoon
Normal file
9
pkg/arvo/imp/first.hoon
Normal file
@ -0,0 +1,9 @@
|
||||
/- spider
|
||||
/+ threadio
|
||||
=, thread=thread:spider
|
||||
^- imp:spider
|
||||
|= bowl:mall
|
||||
=/ m (thread ,~)
|
||||
^- form:m
|
||||
;< ~ bind:m echo:threadio
|
||||
(pure:m ~)
|
Loading…
Reference in New Issue
Block a user