radicle-heartwood-lfs/radicle-cli
Fintan Halpenny f26be552c2
cli: improve rad id allow list UX
The previous implementation of using the `--allow` option in `rad id
update` would be an absolute list, rather than additive. That is, if
there were existing DIDs not passed in via `--allow` then they would
be remove.

Change this behaviour to check the existing value of the document's
allow list, and add to it if `--allow` is specified.

To enable the user to also remove a DID, the `--disallow` option is
also added.

The correct usage of these options is improved by checking the
validity of the `--visibility` option being used, the current state of
the repository's privacy, and the use of the `--allow` and
`--disallow` options.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-06-20 17:22:38 +02:00
..
examples cli: improve rad id allow list UX 2024-06-20 17:22:38 +02:00
src cli: improve rad id allow list UX 2024-06-20 17:22:38 +02:00
tests cli: improve rad id allow list UX 2024-06-20 17:22:38 +02:00
Cargo.toml Bump crate versions 2024-06-05 16:51:55 +02:00
build.rs Update radicle crates to 0.9.0 2024-03-26 11:56:27 +01:00