radicle-heartwood-lfs/crates/radicle-cli
Fintan Halpenny eccfd6baf3 cli: optional message for issue comments
The `From<String> for Message` implementation has an interesting
interaction between `clap` and how `Message` can be used from the
command line.

Note that `FromStr` is not implemented for `Message` – which usually
what is to be expected for use with `clap`, but in fact, `clap` also
allows `From<String>`.

This would make `Message` be a required option when using `rad issue comment`.

It is not possible to use `default_value_t` because that required an
implementation of `Display`, which in this case we do not want to
implement. Trying to use `default_value = "Message::Edit"` also would
not work – it uses that as the text.

So, the solution is to mark it as optional, and default to
`Message::Edit` when it is not specified.
2026-02-05 19:58:46 +01:00
..
examples cli: fix casing for warning of preferred_seeds 2026-01-28 10:17:36 +00:00
src cli: optional message for issue comments 2026-02-05 19:58:46 +01:00
tests radicle-cli: more helpful error for non-delegate updates 2026-01-22 10:38:28 +00:00
Cargo.toml core: Introduce RepoId 2026-01-09 14:03:27 +01:00
build.rs repo: Move workspace crates into `crates` subdirectory 2025-06-09 15:09:21 +02:00