Skip to content

favorites: list/add/rm + ★ in ls#2

Merged
jbuchananr merged 1 commit into
mainfrom
feat/favorites
Jun 15, 2026
Merged

favorites: list/add/rm + ★ in ls#2
jbuchananr merged 1 commit into
mainfrom
feat/favorites

Conversation

@jbuchananr

Copy link
Copy Markdown
Contributor

Ships favorites to the CLI (companion to the mdocs-web-editor favorites PR).

Commands

  • mdocs favorites (alias favs) — list your starred docs (default subcommand).
  • mdocs favorites add <doc> — star a doc.
  • mdocs favorites rm <doc> (alias remove) — unstar.
  • mdocs ls now prints a leading for favorites and includes favorite in --json.

Also documented in mdocs instructions and the installed agent skill.

Depends on

The server endpoints in the mdocs-web-editor favorites PR (/api/docs/favorites, PUT/DELETE /api/docs/:id/favorite). These CLI commands will 404 until that ships and the DB migration runs.

Verification

typecheck and tsup build pass; mdocs favorites --help lists the subcommands. Live calls need the server deployed.

Not published to npm — run npm run release when ready.

🤖 Generated with Claude Code

- new `mdocs favorites` command group (alias `favs`): list (default), add
  <doc>, rm <doc> (alias remove).
- `mdocs ls` marks favorited docs with a leading ★ and includes `favorite`
  in --json output.
- Api client: listFavorites / favorite / unfavorite over the new
  /api/docs/favorites and PUT|DELETE /api/docs/:id/favorite endpoints.
- Documented in `mdocs instructions` and the agent skill.

Depends on the server endpoints (mdocs-web-editor favorites PR).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jbuchananr jbuchananr merged commit 78bfa5b into main Jun 15, 2026
1 check 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.

1 participant