gluegun icon indicating copy to clipboard operation
gluegun copied to clipboard

context output config

Open GantMan opened this issue 7 years ago • 3 comments

Right now you can only have gluegun print to console.

What about allowing gluegun to be configurable so anything built on GG can have CLI OR Library benefits.

context.print.stdout = true (by default) context.print.json = true (false by default) will store all print.success, and print.error, and print.warn messages in a JSON file so this can be passed on to GUI or other apps. Accessible by context.print.jsonLog for the full log.

That's all that's requested in this issue, but possible upgrades in the future? .xml, .file, .api the list goes on.

GantMan avatar Feb 06 '18 18:02 GantMan

I like this idea a lot. Perhaps goes with #161 as well.

jamonholmgren avatar Feb 07 '18 04:02 jamonholmgren

Yes! Hand in hand!

GantMan avatar Feb 07 '18 16:02 GantMan

Planned for post-2.0 release.

jamonholmgren avatar Feb 14 '18 03:02 jamonholmgren