Add --schema_template_out flag to the cargo concordium build command. It either outputs the JSON template of the schema to a file (if a valid path+file is provided with the flag) or outputs it to the console (if a dash is used aka - with the flag)
Add cargo concordium schema-template command (a schema has to be provided either as part of a smart contract module or with the schema flag. Exactly one of the two flags (--schema or --module) has to be used with this command.) that also outputs the template to a file or console.
Purpose
closes #105
Add support to output a schema template.
Changes
--schema_template_out
flag to thecargo concordium build
command. It either outputs the JSON template of the schema to a file (if a validpath+file
is provided with the flag) or outputs it to the console (if a dash is used aka-
with the flag)cargo concordium schema-template
command (a schema has to be provided either as part of a smart contract module or with the schema flag. Exactly one of the two flags (--schema
or--module
) has to be used with this command.) that also outputs the template to a file or console.