boot-stacker
Version:
Boot your stack. Simple, flexible, magical manager for running tasks and applications of all sorts.
23 lines (16 loc) • 572 B
text/coffeescript
_ = require 'lodash'
################################################################################
# Current REPL environment - keeps track of internal state
################################################################################
CURRENT_STATE = {}
set_stacker_state = (state = CURRENT_STATE) ->
CURRENT_STATE = _.assign {}, CURRENT_STATE, state
get_stacker_state = -> CURRENT_STATE
get_shell_env = (obj) ->
_.assign {}, process.env, obj
exports = {
get_shell_env
get_stacker_state
set_stacker_state
}
module.exports[k] = v for k, v of exports