informalsystems / themis-contract

A command line-based parameterized contracting tool
Apache License 2.0
45 stars 5 forks source link

themis-contract new [path/to/template.md] #97

Open zramsay opened 3 years ago

shonfeder commented 3 years ago

@zramsay Could you describe the desired behavior from this feature? I think this issue will be very cryptic to anyone who wasn't in our meeting mast week.

zramsay commented 3 years ago

The current workflow and design of themis assumes an existing template.md is available as a remote. I.e., themis-contract new expects a remote as argument to generate the contract.dhall

This design makes sense for an established contracting framework/flow. When starting afresh, no remote exists ... the user is either writing a markdown file from scratch or importing it from a different format. There is therefore no convenient way to generate a contract.dhall file. The functionality is identical to the claw new link minus the directory creating.