Closed yamadashy closed 2 months ago
The changes introduce a new output format, Markdown, to the Repopack tool, enhancing its functionality. A new .gitignore
entry is added for Markdown output files, and the README.md
is updated to include instructions for generating Markdown output. The command-line interface and configuration types are modified to accommodate the new output style. Additionally, a new file for generating Markdown output is created, and tests are added to ensure its functionality.
File | Change Summary |
---|---|
.gitignore |
Added repopack-output.md to the list of ignored files. |
README.md |
Introduced a section for Markdown output format and updated command line options to include markdown . |
src/cli/cliRunner.ts |
Updated --style option description to include markdown . |
src/config/configTypes.ts |
Expanded RepopackOutputStyle type to include markdown . |
src/core/output/markdownStyleGenerator.ts |
Added generateMarkdownStyle function for generating Markdown output. |
src/core/output/outputGenerator.ts |
Modified generateOutput to include a case for markdown output, calling generateMarkdownStyle . |
src/core/output/plainStyleGenerator.ts |
Repositioned PLAIN_SEPARATOR and PLAIN_LONG_SEPARATOR constants and updated their usage in the render context. |
src/core/output/xmlStyleGenerator.ts |
Altered xmlTemplate to use a tagged template literal. |
tests/core/output/markdownStyleGenerator.test.ts |
Added tests for the generateMarkdownStyle function to validate output structure. |
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
This PR introduces a new Markdown output style for Repopack, providing users with an additional option for formatting their repository content.
related: #86
Summary by CodeRabbit
New Features
Documentation
Tests