Update the templates list for `ligo init` & Imporve the error message
Motivation and Context
For the new release of LIGO registry we need to update the list of contract & libraries
Description
This MR updates the list of contracts & libraryes
And Fixes the error message in case of invalid templated
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to not work as expected) -
Performance improvement (non-breaking change that improves performance) -
None (change with no changelog)
Changelog
New templates via ligo init & Improved error messages for invalid template
Before:
$ ligo init contract
Template unrecognized please select one of the following list :
NFT-factory-cameligo
NFT-factory-jsligo
advisor-cameligo
dao-cameligo
dao-jsligo
multisig-cameligo
multisig-jsligo
permit-cameligo
randomness-cameligo
randomness-jsligo
shifumi-cameligo
shifumi-jsligo
After:
$ ligo init contract
Error: Unrecognized template
Hint: Use the option --template "TEMPLATE_NAME"
Please select a template from the following list:
- NFT-factory-cameligo
- NFT-factory-jsligo
- advisor-cameligo
- advisor-jsligo
- dao-cameligo
- dao-jsligo
- multisig-cameligo
- multisig-jsligo
- permit-cameligo
- permit-jsligo
- predictive-market-cameligo
- predictive-market-jsligo
- randomness-cameligo
- randomness-jsligo
- shifumi-cameligo
- shifumi-jsligo
Checklist:
-
Changes follow the existing coding style (use dune @fmt
to check). -
Tests for the changes have been added (for bug fixes / feature). -
Documentation has been updated. -
Changelog description has been added (if appropriate). -
Start titles under ## Changelog
section with #### (if appropriate). -
There is no image or uploaded file in changelog -
Examples in changed behaviour have been added to the changelog (for breaking change / feature).
Edited by Melwyn Saldanha