Skip to content

optimize validating multiple files by allowing to call the cli only once and to reuse the schemas without reloading them - #234

Open
lehors wants to merge 4 commits into
doclang-project:mainfrom
lehors:issue-165
Open

lehors wants to merge 4 commits into
doclang-project:mainfrom
lehors:issue-165

Conversation

@lehors

@lehors lehors commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds an argument to the doclang/cli which allows passing a list of files to validate while caching the related schemas to avoid reloading the same schemas for every file.
As an option the standard input can be used to feed the list of files to validate. So one can do one of the following:

doclang validate --filelist files.txt
find . -name "*.dclg" | doclang validate --filelist -

This closes issue #165.

Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant