shrub/.travis/in-urbit.ls

16 lines
382 B
Plaintext
Raw Normal View History

require! <[ split ]>
{through} = require 'promise-streams'
2018-03-09 23:47:45 +03:00
{Urbit,ERROR} = require './runner.ls'
urbit = new Urbit process.argv[2 to]
2018-03-09 23:47:45 +03:00
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