-
Notifications
You must be signed in to change notification settings - Fork 2
feat: add exporting log info #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 6555aab The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThe changes introduce a new changeset file for documenting a patch update, update the Node.js version in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant CLI
participant ExportModule
participant PDFGenerator
User->>CLI: Run export command
CLI->>ExportModule: collectPages(sidebarItems)
ExportModule-->>CLI: pages
CLI->>CLI: Log language and page count
CLI->>PDFGenerator: generatePdf(pages, ...)
PDFGenerator-->>CLI: PDF generated
CLI->>User: Output "Exported to ..." message
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🧰 Additional context used🧬 Code Graph Analysis (1)src/cli/export.ts (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (5)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enhances the export command by adding logging and improving error handling while updating the Node version.
- Adds a log statement to provide feedback about the export process
- Redirects error output to stderr in mergePDF for proper error indication
- Adjusts the exported message format in generatePdf
- Updates the Node version in .nvmrc
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/cli/export.ts | Introduces a logger.start message to indicate export parameters |
| src/cli/export-pdf-core/utils/mergePDF.ts | Switches error output from stdout to stderr for clearer error signaling |
| src/cli/export-pdf-core/generatePdf.ts | Removes an extraneous newline in the export success message |
| .nvmrc | Updates the Node version from v20.19.1 to v20.19.2 |
commit: |
Summary by CodeRabbit
Chores
Style
Bug Fixes
Refactor