mirror of
https://github.com/yigitkonur/cli-continues.git
synced 2026-04-26 00:36:02 +03:00
[PR #20] [MERGED] feat: add dump command for bulk session export #24
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cli-continues#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/yigitkonur/cli-continues/pull/20
Author: @commandlinetips
Created: 2/28/2026
Status: ✅ Merged
Merged: 3/2/2026
Merged by: @yigitkonur
Base:
main← Head:main📝 Commits (4)
bb7e58cfeat: add dump command for bulk session exporta2a51c2docs: add dump command to READMEf3ccafefix: address code review feedback for dump command50948e1fix: stop spinner on error + validate --limit input📊 Changes
3 files changed (+195 additions, -0 deletions)
View changed files
📝
README.md(+25 -0)📝
src/cli.ts(+13 -0)➕
src/commands/dump.ts(+157 -0)📄 Description
Summary
Adds a new
dumpcommand to bulk export sessions to markdown or JSON files.Usage
Options
--preset <name>--json--limit <n>--rebuildImplementation
src/commands/dump.ts- dump command handlersrc/cli.ts- register the commandREADME.md- documentationFile Naming
{source}_{id}.md(e.g.,claude_abc123def456.md){source}_{id}.json(e.g.,gemini_def789ghi012.json)Test plan
continues dump --helpshows correct usagecontinues dump all ./dir --limit 3exports 3 markdown filescontinues dump all ./dir --jsonexports JSON filescontinues dump opencode ./dirfilters by sourcecontinues dump claude ./dir --preset fulluses full verbosityReview all of them with eye of John Carmack-like simplicity with elegeance approach and apply the one only if required
Greptile Summary
Adds bulk export command for sessions. Core feature is solid — reuses existing
getAllSessions,getSessionsBySource, and adapterextractContextmethods. Integrates naturally with the CLI's flag patterns and verbosity presets.Critical bugs found:
list.ts)fs.existsSynccheck beforemkdirSyncwith recursive flagFeature itself fits well. Implementation needs tightening.
Confidence Score: 2/5
src/commands/dump.tsneeds immediate fixes for crash bugs and error handlingImportant Files Changed
Flowchart
Last reviewed commit:
a2a51c2(2/5) Greptile learns from your feedback when you react with thumbs up/down!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.