From 1af9480b088c3eec800040a1bdcd09941a31bcf3 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 29 Nov 2023 17:10:36 +0000 Subject: [PATCH] cli: Move label commands to `issue` and `patch` It is more natural for the label and unlabel commands to exist as subcommands of the object they are labelling, i.e. issues and patches. Remove the `rad label` and `rad unlabel` commands, moving their functionality to the `rad issue` and `rad patch` commands. The `rad-issue.md` and `rad-patch.md` tests are modified to include a label test. The `rad patch show` command did not support showing labels as part of its output. This was also included to confirm the test above was working. Signed-off-by: Fintan Halpenny X-Clacks-Overhead: GNU Terry Pratchett --- rad-patch.1.adoc | 2 + radicle-cli/examples/rad-issue.md | 34 ++++--- radicle-cli/examples/rad-label.md | 42 -------- radicle-cli/examples/rad-patch.md | 36 +++++-- radicle-cli/src/commands.rs | 4 - radicle-cli/src/commands/help.rs | 2 - radicle-cli/src/commands/issue.rs | 60 ++++++++++- radicle-cli/src/commands/label.rs | 129 ------------------------ radicle-cli/src/commands/patch.rs | 59 ++++++++++- radicle-cli/src/commands/patch/label.rs | 42 ++++++++ radicle-cli/src/commands/patch/show.rs | 7 ++ radicle-cli/src/commands/unlabel.rs | 125 ----------------------- radicle-cli/src/main.rs | 14 --- radicle-cli/tests/commands.rs | 15 --- 14 files changed, 217 insertions(+), 354 deletions(-) delete mode 100644 radicle-cli/examples/rad-label.md delete mode 100644 radicle-cli/src/commands/label.rs create mode 100644 radicle-cli/src/commands/patch/label.rs delete mode 100644 radicle-cli/src/commands/unlabel.rs diff --git a/rad-patch.1.adoc b/rad-patch.1.adoc index bd3bfebe1..e7daff729 100644 --- a/rad-patch.1.adoc +++ b/rad-patch.1.adoc @@ -24,6 +24,8 @@ rad-patch - Manage radicle patches. *rad patch* _edit_ [