mirror of
https://github.com/urbit/shrub.git
synced 2024-12-15 04:22:48 +03:00
16 lines
382 B
Plaintext
16 lines
382 B
Plaintext
require! <[ split ]>
|
|
{through} = require 'promise-streams'
|
|
{Urbit,ERROR} = require './runner.ls'
|
|
|
|
urbit = new Urbit process.argv[3 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
|