feat: add edit, tags, and stats commands (client parity)#100
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
Adds CLI feature parity with the web client by introducing etu edit, etu tags, and etu stats, plus the necessary gRPC client wiring and documentation updates.
Changes:
- Added new Cobra commands:
edit(TUI edit flow),tags(pipeable tag counts), andstats(personal + optional community stats via--global). - Extended the
clientpackage to wireTagsServiceClient/StatsServiceClientand exposeListTags,GetStats, andUpdatePost. - Added unit tests for tag conversion/formatting and stats formatting; updated README and added
CLAUDE.md.
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
tags.go |
Adds etu tags command and deterministic sorting/formatting helper. |
tags_test.go |
Tests formatTags output and ordering rules. |
stats.go |
Adds etu stats command and formatting helper with optional community block. |
stats_test.go |
Tests stats rendering for personal-only, community, and zero values. |
edit.go |
Adds etu edit command: select entry, load full content, edit via huh, update via client. |
main.go |
Registers new commands and adds stats --global flag. |
README.md |
Documents the new commands in the usage list. |
client/grpc.go |
Wires Tags/Stats service clients and adds proto→client tag conversion helper. |
client/grpc_test.go |
Tests protoTagsToTags conversion behavior. |
client/client.go |
Adds UpdatePost, ListTags, GetStats, and new Tag/Stats types. |
CLAUDE.md |
Adds contributor-facing repo/build/test/architecture notes. |
docs/superpowers/plans/2026-06-12-cli-parity.md |
Adds an implementation plan document for CLI parity work. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Summary
etu edit(aliase): pick an entry, edit its content in a pre-filled form, save viaUpdateNote(tags untouched); prints "No changes." when content is unchangedetu tags(aliast): plain, pipeablename (count)list sorted by count desc, name ascetu stats: Blips / Tags / Words written, with--globalfor community stats (emptyUserIdinGetStatsRequest)TagsServiceClientandStatsServiceClientinto the client package alongside the existing service clientsCLAUDE.mdThis closes the CLI's feature-parity gap with the web client (which already exposes edit, tags, and stats).
Test plan
go build ./...,go vet ./...,gofmt -l .cleango test ./...passes (new table tests for tag conversion/sorting and stats formatting)golangci-lint run ./...— 0 issues