feat(cli): torb login, logout, owner, yank and deprecate use std/cli #784
No reviewers
Labels
No labels
loop
queue/failed
queue/queued
ready
status/parked
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
torbscript/language!784
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/783-registry-commands-std-cli"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Step 6 of #124.
login,logout,owner list|add|remove,yankanddeprecateare declared incompiler/src/cli/declaration.trb;registryOptionsFromyields the sameRegistryOptionsas before,registryProblemOfkeeps the checks a flag cannot express.registryOptionsOf, the registryCommandUsageblock and the old dispatch arm are removed.ownerfollow the action (torb owner add acme ada --role owner); a flag the action does not take is refused as an unknown flag naming the action.torb login <token>is refused without echoing the token.torbCommand()argument lists;cli-declarationandcommand-pagesfollow;tools/command-line.shgains the wrong lines andarguments.expectedchanges only on the five commands' lines.Refs #124, #783
torb login,logout,owner,yankanddeprecateparse their command line withstd/cli(step 6 of #124) #783CI red on
59cb676:ci / bootstrap (linux-x64)failed after 6m8s;ci / gatesfailed after 0s as a consequence, every later job was skipped. Cause not seen: the job log is not readable with the review token. The PR body says nothing was run locally and the expected output was derived by hand, so the usual suspects aretests/command-line/arguments.expectedor theregistry-commands/cli-declarationtest expectations. Please read the log, fix and push; the next CI run brings the review back.ci / bootstrap (linux-x64)failed in step 1: 13 problems incompiler/tests/cli-declaration.test.trbandcompiler/tests/registry-commands.test.trb(Some "x"insideassert(...), a capturedparsedinassert, command-call syntax in amatchscrutinee, in a call argument and with a list literal).Fix in
b7042e6a(tests only):Some("x"),const path = parsed.pathbefore the assert, parenthesised calls. Local seedtorb:torb checkreproduced the 13 problems on59cb676and reports none onb7042e6;torb teston both files: 87 passed, 0 failed.Not verified locally:
tests/command-line/arguments.expected(needs a compiler built from this tree, CI only). Review re-requested.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.