Repository navigation
comline accept; comline add asks before accepting @unverified protocols - #89
Merged
Merged
Conversation
…protocols Both show what each protocol gives up and why, then ask on a terminal (default no). Without one they refuse, naming the flag: --yes for accept, --accept-unverified for add. accept writes accept_unverified into the dependency's entry (replacing one already there), reads it back with core's parser and resolves it before writing; add writes it into the new entry. Accepting is never inherited or silent.
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.
Follow-up to ComlineProject/core#132 (ComlineProject/runtime#18). The behaviour was agreed with the user: ask on a terminal, require a flag otherwise.
comline accept NAME[::PROTOCOL]@unverifiedprotocol in the dependency gives up and why, skipping protocols already accepted for exactly their current set.Accept Ledger? [y/N]on a terminal. The default is no.--yes.accept_unverifiedinto the dependency's entry and replaces one already there. Every other byte ofconfig.idpstays as written. A one-line entry stays on one line.comline addused to stop at core's "accept it" error. Now:--accept-unverified);Tests:
tests/cli/accept.rscoversaddrefusing then accepting, an update that gives up more being accepted withaccept --yes, "nothing to accept", and unknown names.nwrites nothing,ywrites the entry.110 tests pass. A docs PR with the CLI reference follows.