Skip to content

feat: add top-level blog publish command#160

Merged
jeff-atriumn merged 1 commit intomainfrom
feat/blog-publish-top-level-command
Mar 27, 2026
Merged

feat: add top-level blog publish command#160
jeff-atriumn merged 1 commit intomainfrom
feat/blog-publish-top-level-command

Conversation

@jeff-atriumn
Copy link
Copy Markdown
Member

Summary

  • Add cryyer blog publish as a top-level CLI command alongside social, matching the UX described in Blog publish command — commit generated posts to product repos #158
  • Extract extractExcerpt into a named, exported function with proper markdown stripping (bold, italic, links)
  • Rename test file to blog-publish.test.ts with added coverage for publish subcommand stripping and excerpt extraction
  • Both cryyer blog publish and cryyer social blog-publish paths remain functional

Test plan

  • All 520 existing tests pass
  • 19 blog-publish tests pass (including new excerpt and publish argv tests)
  • Typecheck passes
  • Lint passes (no new warnings)

Closes #158

Generated with Claude Code

Wire blog-publish as a top-level `blog` command alongside `social`,
so users can run `cryyer blog publish <draft> --product <id>` in
addition to the existing `cryyer social blog-publish` path. Extract
excerpt generation into a testable `extractExcerpt` function with
proper markdown stripping. Rename test file to blog-publish.test.ts
and add coverage for the `publish` subcommand and excerpt extraction.

Closes #158

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cryyer Ready Ready Preview, Comment Mar 27, 2026 10:43pm

Request Review

@jeff-atriumn jeff-atriumn merged commit 75af6d7 into main Mar 27, 2026
4 checks passed
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.

Blog publish command — commit generated posts to product repos

1 participant