Skip to content

feat: dump subcommand - #93

Open
suft wants to merge 1 commit into
notnmeyer:mainfrom
suft:feat/dump
Open

feat: dump subcommand#93
suft wants to merge 1 commit into
notnmeyer:mainfrom
suft:feat/dump

Conversation

@suft

@suft suft commented Jul 26, 2026

Copy link
Copy Markdown

Summary

Adds a daylog dump command that concatenates every log in a project, addressing #82.

  • I went with a standalone dump subcommand instead
  • Since it's project-wide rather than a variant of showing a single day's log
  • It leaves room for its own flags (--reverse, --since, --until) without overloading show
  • Happy to rename/restructure if a flag on show is preferred instead.

What's included

  • daylog dump — concatenates all logs, oldest → newest by default.
  • --reverse — newest → oldest instead.
  • --since / --until — restrict the range to logs on or after / on or before a given date (inclusive on both ends)
  • -o/--output — reuses the existing markdown/text output formatter, same as show.
  • Respects -p/--project like the other commands.

Example usage

daylog dump
daylog dump -r
daylog dump --reverse
daylog dump -o text
daylog dump --since "1 week ago"
daylog dump --since 2023/01/07 --until yesterday
daylog dump -p work

Closes #82

@suft
suft marked this pull request as ready for review July 26, 2026 17:43
@suft suft changed the title Add daylog dump to concatenate all logs feat: dump subcommand Jul 26, 2026
@notnmeyer

Copy link
Copy Markdown
Owner

sorry for the delay! ill review this soon 👍

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.

add daylog show --all to view/concatenate all logs

2 participants