M6: prompt mode + status + docs + release - #16
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #6
Ships the M6 milestone: prompt integration, a polished status command, real docs, and a release pipeline.
What changed
commit-sprout status— new subcommand. Compact, plain-text (script-friendly) summary: stage + health, current streak (with remembered best), last commit in whole days, and a days-until-wilt nudge.commit-sprout prompt(+--promptflag) — new one-line glyph for shell prompt / tmux / starship. Built for the hot path:--save.Shared pipeline refactor — root/status/prompt now ride one
runPipeline()(read git activity → load state → compute) +persist()helper, so the three commands stay consistent and DRY. No behavior change to the existing root render.Docs — README now has: prebuilt-binary install from Releases,
status/promptusage with sample output, and copy-paste starship, tmux, bash, and zsh prompt snippets. Status banner bumped to v0.1; LICENSE link fixed.LICENSE — MIT added.
Release —
.goreleaser.yaml(CGO-free static binaries for linux/macos/windows × amd64/arm64, archives + checksums, version injected into--versionfrom the tag) and.github/workflows/release.yml(runs GoReleaser onv*tags). Validated locally withgoreleaser checkand a snapshot build (version ldflag confirmed).Checklist mapping
--promptemits a compact glyph + stagestatusshows streak, last commit, days-until-wiltTesting
gofmt -l .clean,go vet ./...,go build ./...,go test ./...all passcmd/status_test.gocovers the status/streak/wilt phrasing helpersstatus,prompt,--prompt, and silent-outside-repo behaviorgoreleaser check+ snapshot build pass;--versionldflag injection confirmedNot included
v0.1.0tag cut — the release pipeline is ready; tagging is a maintainer action.