Skip to content

[feature] commit-sprout card — export plant as SVG for README badge #27

Closed

Description

@rwrife

Backlog PLAN.md §8.10. Export the current plant as an SVG (and stdout ASCII) so people can embed a live-ish plant badge in their README.

Pitch: The green-squares badge is culture. A commit-sprout card subcommand that renders the plant to an SVG file gives users a shareable artifact — screenshot-free, embeddable, on-brand.

Acceptance criteria:

  • New card cobra subcommand: commit-sprout card [--out plant.svg].
  • Renders current PlantState to a self-contained SVG (monospace tspans mirroring the ASCII art + stage/streak caption). No external assets.
  • --out - writes SVG to stdout; default writes plant.svg in cwd (atomic write).
  • Color path honors the render theme; --no-color yields a mono SVG.
  • Unit test asserts valid SVG root + expected glyph rows for a known state.
  • README: card section + example embed snippet.
  • go build ./... and go test ./... pass.

Activity

  1. rwrife commented on Jul 16, 2026

    @rwrife
    OwnerAuthor

    Opened #30 implementing the SVG card export: new commit-sprout card [--out plant.svg] subcommand (--out - streams to stdout, default atomic write), themed color + --no-color mono, unit tests (valid SVG root + glyph rows + color theme), and a README badge section. All builds/tests green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions