Open Ma1h01 opened 4 months ago
The described functionality is working as intended. The directory name under catalogs is meant to represent the catalog name. This is the same functionality for all of the authored models. In light of this, can you describe what you are looking in terms of an enhancement?
Describe the bug
There are two potential issues regarding the
trestle author catalog-generate
command:-n
option looks for the name of the catalog model in the trestle workspace. But it, in fact, looks for the sub-directory ofcatalogs/
that contains the catalog JSON file we want to generate markdowns from.catalog.json
. Any other names would cause an error.To Reproduce
Steps to reproduce the behavior:
catalogs/
, and ensure it is NOT namedcatalog.json
md/
in the root to store the markdownstrestle author catalog-generate -n catalog -o md/
to reproduce the first issue.trestle author catalog-generate -n . -o md/
to reproduce the second issue.Expected behavior
The
-n
option documentation should match what it is looking for.The command should also work on catalog JSON files named other than
catalog.json
Screenshots / Logs.
Environment