danielgtaylor / danielgtaylor/nesh
how to make local values available when embedding?
- Dominant language
- CoffeeScript
- Stars
- 284
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm trying to embed a coffeescript REPL inside a coffeescript program. I've constructed a carefully-configured object that I'd like to pass into the REPL, which cannot easily be constructed by an eval'ed string.
Is there something like this available?
opts.locals=
myobj: carefully_constructed_obj
Or how do I add something to nesh.defaults?
-G
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading the REPL embedding and option/default handling entry points, focusing on the requested opts.locals and nesh.defaults behavior. Determine whether a supported way to pass carefully constructed local values can be defined, and document or implement the chosen behavior with coverage for an embedded CoffeeScript REPL.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- coffeescript, nodejs
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100