radicle-heartwood-lfs/radicle-cli/src
Fintan Halpenny 8e0e1c232d
cli: improve Author labels
When an alias cannot be found for an `Author` the DID can be repeated eg.

    ✓ accepted by z6MkkfM…jXVsVz5 z6MkkfM…jXVsVz5

To prevent this we output one of four cases:

* `(<alias>, (you))` -- the `Author` is the local peer and has an alias
* `(<did>, (you))` -- the `Author` is the local peer and has no alias
* `(<alias>, <did>)` -- the `Author` is another peer and has an alias
* `(<blank>, <did>)` -- the `Author` is another peer and has no alias

Notably, we output a blank `Label` when no alias was found.

Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2024-01-09 13:44:46 +01:00
..
commands cli: allow editing patch revision descriptions 2024-01-09 13:28:08 +01:00
git cli: Add `rad patch diff` command 2024-01-04 11:49:01 +01:00
terminal cli: improve Author labels 2024-01-09 13:44:46 +01:00
commands.rs cli: Add `watch` command 2023-12-11 12:04:26 +01:00
git.rs cli: Implement pretty diffs with highlighting 2023-09-27 12:37:41 +02:00
lib.rs cli: sync on patch and issue updates 2023-12-19 14:19:55 +01:00
main.rs cli: Add `watch` command 2023-12-11 12:04:26 +01:00
node.rs cli: Improve `rad remote add` 2024-01-08 17:28:01 +01:00
pager.rs cli: Add pager to `rad diff` 2023-11-03 14:20:16 +01:00
project.rs radicle: Rename many more methods using new naming 2023-12-06 10:02:00 +01:00
terminal.rs cli: Improve messaging when config doesn't load 2023-12-13 12:30:11 +01:00