mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 19:55:53 +03:00
16 lines
375 B
Plaintext
16 lines
375 B
Plaintext
|
require! <[ split ]>
|
||
|
{through} = require 'promise-streams'
|
||
|
{Urbit} = require './runner.ls'
|
||
|
|
||
|
urbit = new Urbit process.argv[2 to]
|
||
|
|
||
|
urbit.expect-error!then -> process.exit 1
|
||
|
|
||
|
<- urbit.expect /dojo> / .then
|
||
|
|
||
|
process.stdin.pipe split!
|
||
|
.pipe through ->
|
||
|
urbit.line it.trim!replace /\$[a-zA-Z0-9_]+/g ->
|
||
|
process.env[it.slice 1] ? '__unknown-var__'
|
||
|
.wait!then -> urbit.exit 0
|