Refuse a plans line that acts wherever its subcommand stands
A flag before the subcommand (plans --json go <id>) still acts, so the generic command verb judges every word of a plans line, retry included (hq ADR 0266). The rest of this change, places and accesses at the terminal and one line per setting, is issue 339's on main (#168, #170, #172), which now does it for every process a verb runs; this branch's --through-verb flag and its copy of those rules go.
This commit is contained in:
@@ -369,7 +369,8 @@ func TestTheCommandVerbOnlyReads(t *testing.T) {
|
||||
"secret recover a", "secret export a", "token issue --new x", "identity show", "broker users",
|
||||
"api key", "licence show", "push anchor --why w", "assign novox m", "settings set m {}",
|
||||
"settings clear m", "module add f", "module check /etc", "module forget m", "module issue m --node a",
|
||||
"seat rename a b", "plans close p --why w", "plans go p", "doctor run", "conditions silence c --why w",
|
||||
"seat rename a b", "plans close p --why w", "plans go p", "plans retry p", "plans stop p",
|
||||
"plans --json go p", "plans -n 3 close p", "plans --what-if r retry p", "doctor run", "conditions silence c --why w",
|
||||
"retire approve x", "cleanup delete x", "delivery check", "delivery go x", "bus upgrade",
|
||||
"mirrors --record x", "mirrors --confirm", "hand-act record x --why y --cause z", "serve", "migrate",
|
||||
"prepare", "declare x", "overlay x", "facts", "merge-gate", "check-here", "build x", "rebuild x",
|
||||
|
||||
Reference in New Issue
Block a user