| description | Reference for the codeql generate query-help command |
|---|
The codeql generate query-help command is used to get and/or format end-user query help from some .qhelp, .ql, .qls or .md file.
The primary use case of the codeql generate query-help command is to convert from .qhelp (XML) files to a more readable markdown format:
codeql generate query-help \
--format=markdown \
--output=example/relative-path-to/SomeQuery.md \
-- example/relative-path-to/SomeQuery.qhelpThe codeql generate query-help command can also be used to get the markdown-formatted documentation for a given query (.ql) file path:
codeql generate query-help \
--format=markdown \
--output=example/relative-path-to/SomeQuery.md \
-- example/relative-path-to/SomeQuery.qlRun codeql generate query-help -h for more information.
Run codeql generate query-help -h -vv for much more information.
- Create .qhelp files with query documentation.
codeql resolve queries- Resolve queries before generating help.
- Review and publish generated documentation.
- Update test code and/or expected test results based on the query's documented intent and/or examples.
codeql test run- Run the query against its unit tests when test code and expected test results are an accurate reflection of expected test behavior.