radicle-heartwood-lfs/radicle-cli
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
..
examples cli: split into patch::create and patch::update 2023-02-06 13:53:31 +01:00
src cli: split into patch::create and patch::update 2023-02-06 13:53:31 +01:00
tests Replace `RAD_DEBUG` with `RAD_SEED` 2023-01-25 17:09:16 +01:00
Cargo.toml Add web-based authentication 2023-01-27 17:23:05 +01:00