It sounds really adhoc, you might just need to write most of it.

IIUC Cisco CLI is an interactive stateful prompt, so these tools might
help you out:

node-readcommand [1] will give you a stateful prompt loop where users
can input commands. It will parse that user input into an args array
like argv (sorry this is a shameless plug, but I don't know of any
other modules that will achieve this)

minimist [2] can be used to parse those argv arrays into options. Or
yargs [3] if you want fancy help outputs and validation and if you
think you have a chance at understand the README :)

As for loading, modifying and saving the JSON file, I can't think of
anything else to help you there aside from the internal Node.js APIs.

Hope that helps,
Branden

[1] https://www.npmjs.org/package/readcommand
[2] https://www.npmjs.org/package/minimist
[3] https://www.npmjs.org/package/yargs

On Tue, May 6, 2014 at 5:54 PM, Dino Lopez <[email protected]> wrote:
>> I guess what I'm looking is somehting like
>> https://www.npmjs.org/package/prompt is providing, to allow me interactively
>> setup the values of the variables for my web application and save all this
>> in a json file to be read later by a builder which will create the web
>> application.
>
>
> The main goal is to have a very simple text file to propagate and re-use
> building webapps. simple to edit with a compehensive and consistant API. and
> once ready run it to the builder which will be some other project similar to
> grunt.
>
> Any ideas on how to achieve will be appreciate it, trying to have something
> similar to the Cisco CLI for configuring Routers, but this will configure
> web apps and build the file.
>
> --
> Job board: http://jobs.nodejs.org/
> New group rules:
> https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nodejs/375314f4-aa0f-452a-850a-77eb20739715%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/CAOo4Obo4jNxZT2MU5K_byN0TmCaf5oKte0NqHZxC5ECgrNPgpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to