accordproject / template-archive

Smart Legal Contracts & Templating System
https://accordproject.org/projects/cicero/
Apache License 2.0
280 stars 119 forks source link

CLI: Reimplement "draft" command #797

Open martinhalford opened 10 months ago

martinhalford commented 10 months ago

Feature Request 🛍️

The draft command was recently removed from the latest unstable version during the removal of Ergo. As discussed at Tech Working Group meeting on Wed 18 Oct, we'd like to reimplement the draft command back into template-archive until such time as it can be implemented in a future accord CLI app.

Use Case

Possible Solution

martinhalford commented 10 months ago

@mttrbrts @dselman - I have re-added the CLI args etc and am now up to the bit where we call template-engine.

Can you please share the REPL with the sample code that demonstrates how to implement the draft functionality?

I tried this one.... https://replit.com/@dselman/AccordProjectTemplateEngine-Hello-World?v=1#index.js

However, I get the error ERROR: TemplateMarkInterpreter is not a constructor when I try to.... const engine = new TemplateMarkInterpreter(modelManager, {});

Any pointers gratefully accepted!

Thank you!!