Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: Reimplement "draft" command #797

Open
martinhalford opened this issue Oct 19, 2023 · 1 comment · May be fixed by #801
Open

CLI: Reimplement "draft" command #797

martinhalford opened this issue Oct 19, 2023 · 1 comment · May be fixed by #801
Assignees
Labels
Type: Feature Request 🛍️ New feature or request

Comments

@martinhalford
Copy link
Member

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

  • Allow users to merge a template with data in order to produce a draft agreement/contract. This is, most likely, for testing purposes only.

Possible Solution

  • Reimplement the CLI code.
  • Add template-engine code to perform draft functionality, as the cicero-core package no longer contains this capability.
@martinhalford martinhalford added the Type: Feature Request 🛍️ New feature or request label Oct 19, 2023
@martinhalford martinhalford self-assigned this Oct 19, 2023
@martinhalford
Copy link
Member Author

@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!!

@mttrbrts mttrbrts linked a pull request Oct 19, 2023 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Request 🛍️ New feature or request
Projects
None yet
1 participant