Skip to content

feature/ATR 260901 cli grammar standard - #57

Merged
p4nda merged 4 commits into
developfrom
feature/ATR-260901-cli-grammar-standard
Sep 3, 2026
Merged

feature/ATR 260901 cli grammar standard#57
p4nda merged 4 commits into
developfrom
feature/ATR-260901-cli-grammar-standard

Conversation

@p4nda

@p4nda p4nda commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

No description provided.

p4nda and others added 4 commits September 1, 2026 12:25
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
@p4nda
p4nda merged commit 8a315f9 into develop Sep 3, 2026
6 checks 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