Repository navigation
feat(standards): the words of a content CLI - #662
Merged
Merged
Conversation
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>
Merged
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>
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.
Task
cli-dev lintrefused 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
postsandchannels.statsas a view as well as a root command, forposts stats <post>.src/standards/flags-content.tswith three options:--slug <slug>(value): the last part of the web address.--tags <ids>(value, list): sets a post's tags.--tagis a filter (role target), so it could not be reused.--replace-body(mode).--replacealready means "overwrite one of the same name".Testing
vitest run src/standards: 39 passed.ci:quickwith 0 violations.🤖 Generated with Claude Code