Skip to content

feat(standards): the words of a content CLI - #662

Merged
leemour merged 1 commit into
mainfrom
feat/content-vocabulary
Nov 19, 2026
Merged

leemour merged 1 commit into
mainfrom
feat/content-vocabulary

Conversation

@leemour

@leemour leemour commented Nov 19, 2026

Copy link
Copy Markdown
Member

Task

cli-dev lint refused a CLI made from cli-core's content commands (posts on a site or blog): 22 high violations in a WordPress CLI made by cli-template.

Why

The coordinator ruled "reuse before adding". So cli-core renames its content commands to words the vocabulary already has (--text-file, --description, --at-time, --allow-delete, tags, users). This PR adds only the words for which nothing fit.

What

  • Resources posts and channels.
  • stats as a view as well as a root command, for posts stats <post>.
  • New file src/standards/flags-content.ts with three options:
    • --slug <slug> (value): the last part of the web address.
    • --tags <ids> (value, list): sets a post's tags. --tag is a filter (role target), so it could not be reused.
    • --replace-body (mode). --replace already means "overwrite one of the same name".

Testing

  • vitest run src/standards: 39 passed.
  • A WordPress content CLI made from cli-template over a local pack of this branch and cli-core's renames passes ci:quick with 0 violations.

🤖 Generated with Claude Code

posts and channels are resources, stats is a view too, and --slug, --tags
and --replace-body have their roles, so a CLI made from cli-core's content
commands passes cli-dev lint.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 5bc3928 into main Nov 19, 2026
10 checks passed
@leemour
leemour deleted the feat/content-vocabulary branch November 19, 2026 04:56
@leemour leemour mentioned this pull request Nov 19, 2026
leemour added a commit that referenced this pull request Nov 19, 2026
Dates the Unreleased section as 0.123.0: the content CLI's words (#662),
which cli-core's renamed content commands need for `cli-dev lint`.

Also moves the `names.groups` entry (#661) out of the 0.121.0 section.
It merged after 0.122.0 shipped, so it ships now.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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