Given a DAR file, is there a good way to list the templates defined within that file?
- Michael_SchaefferOP 2
Given a DAR file, is there a way from the command line to get a list of the templates (including package ID’s) defined within that DAR file? Alternatively, can
damlcproduce such a list while building a DAR? I’m using DAZL and looking for a way to more easily bind symbolic template names to fully qualified (with package ID) template names. - cocreature 3
Hi @Michael_Schaeffer, there is no builtin functionality for that at the moment.
You can use
daml damlc inspect-dar --jsonto get the package ids but it does not list the individual templates.daml damlc inspect --jsondoes in theory provide this information but the format is not guaranteed to be stable and you’ll have to do a fair amount of postprocessing to get the info you want out of it.