mirror of
https://github.com/urbit/shrub.git
synced 2024-12-13 16:03:36 +03:00
Add sekrit code to web shell.
This commit is contained in:
parent
7329ea5343
commit
cac95f440a
@ -1670,6 +1670,8 @@
|
||||
=+ luw=(rick mar our law.saf.u.gys)
|
||||
?. &(?=(^ muc) ?=(^ luw)) ~
|
||||
[~ `buck`[u.muc u.luw]]
|
||||
?: ?=([%code ~] tyl)
|
||||
[~ (end 6 1 (shaf %code (shax sec:ex:q:sen:u.gys)))]
|
||||
?: ?=([%tick @ ~] tyl)
|
||||
=+ hur=(slaw %p i.t.tyl)
|
||||
?~ hur ~
|
||||
|
@ -911,6 +911,11 @@
|
||||
?: ?=(| -.mud) +>.$
|
||||
+>.$(cah.sef (~(put by cah.sef) p.u.q.ank p.mud))
|
||||
::
|
||||
++ lass :: load secret
|
||||
^- @ta
|
||||
%^ rsh 3 1
|
||||
(scot %p (,@ (need (sky %a (scot %p our) %code (scot %da now) ~))))
|
||||
::
|
||||
++ lend :: load directory node
|
||||
|= pax=path
|
||||
^- arch
|
||||
@ -1413,10 +1418,8 @@
|
||||
[~ pip(pez [%fin %ham ham])]
|
||||
::
|
||||
%log
|
||||
?. =(%foobar r.som.pip)
|
||||
~& [%login-bad som.pip]
|
||||
?. =(lass r.som.pip)
|
||||
$(som.pip [%lon [~ p.som.pip] q.som.pip])
|
||||
~& [%login-good som.pip]
|
||||
%= $
|
||||
som.pip [%red q.som.pip]
|
||||
aut.ced (~(put ju aut.ced) %$ (scot %p p.som.pip))
|
||||
|
@ -54,7 +54,6 @@
|
||||
++ poll :: current subchange
|
||||
|+ tea=path ::
|
||||
_@ud ::
|
||||
::
|
||||
++ peek :: view
|
||||
|+ $: kyl=keel :: inspecting agent
|
||||
asp=?(%view %diff) :: desired aspect
|
||||
|
9
main/bin/secret.hoon
Normal file
9
main/bin/secret.hoon
Normal file
@ -0,0 +1,9 @@
|
||||
!:
|
||||
:: /=main=/bin/secret/hoon
|
||||
::
|
||||
=> .(-< `who=@p`-<)
|
||||
|= [est=time *]
|
||||
|= ~
|
||||
^- bowl
|
||||
:_ ~ :_ ~
|
||||
[%la %leaf (scow %p (,@p .^(%a (scot %p who) %code (scot %da est) ~)))]
|
Loading…
Reference in New Issue
Block a user