radicle-heartwood-lfs/radicle-cli/examples
Slack Coder 3c202564bf
cli: split into patch::create and patch::update
Simplify codebase by splitting patch::create::run() into patch::create::run() and
patch::update::run().

Patch has the subcommands `create` and `update` but both use the same
method to do the heavy lifting.  Spitting the code allows us to detangle
the code path making it easier to follow.

Also, reduce cognitive load by minimizing the amount of variables used
and isolating them to utility functions.  For instance, `head_branch` can be passed to
these methods instead of `head_oid` and `head_branch`.

Signed-off-by: Slack Coder <slackcoder@server.ky>
2023-02-06 13:53:31 +01:00
..
rad-auth.md cli: Replace `trycmd` with our own test runner 2022-12-06 10:01:38 +01:00
rad-checkout.md cli: Fix output of checkout command 2023-01-25 17:51:49 +01:00
rad-delegate.md cli: add delegate cli 2022-12-27 12:25:24 +01:00
rad-init.md cli: Get `rad-checkout` working properly 2023-01-24 14:54:56 +01:00
rad-issue.md cli: Add minimal `rad comment` 2023-01-18 18:08:09 +01:00
rad-patch.md cli: split into patch::create and patch::update 2023-02-06 13:53:31 +01:00