feature/ATR 260901 cli grammar standard - #57
Merged
Conversation
The scratch-space note described a directory this repo no longer uses for drafts, and a test comment pointed at an issue file rather than at the rule that states the allowlist entry states. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…grammar The four spellings an administrator typed came from four different eras -- `operator add`, `selinux list-groups`, `selinux enable-group`, `postupgrade` -- so the tool had no shape to learn. It now takes the grammar the whole surface is converging on: a plural collection, the verb after the noun, `list` as the zero-argument default, and a singular domain in front where one is needed. The grammar and its REST projection are in cli-grammar.rule.md; the sweep is the first entry point to conform to it. The tool could not print its own surface, so `--help`, `-h` and `--version` arrive with it, answered ahead of the root check because neither reads host state. `ai-tools-admin(8)` carries the reference half, and tests/unit/man.sh now holds the page, the help and the dispatch arms in agreement across both of this project's man pages -- a command renamed in one of the three fails the suite. A rejected command line exits 2 rather than 1, the split ai-tools(1) already documents, so an unattended caller can tell it from an operation that ran and failed. BREAKING CHANGE: `operator add|remove|list`, `selinux list-groups`, `selinux enable-group`, `selinux disable-group` and `postupgrade` are renamed with no aliases. Scripts calling them need updating; the new names are in `ai-tools-admin --help` and ai-tools-admin(8). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…e-grammar feature/ATR 260901 admin resource grammar
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.
No description provided.