Expand description
This crate is used to invoke git-branchless either directly via a
subcommand (such as git-branchless foo) or via an entirely separate
executable (such as git-branchless-foo). The objective is to improve
developer iteration times by allowing them to build and test a single
subcommand in isolation.
Structs§
- Command
Context - Shared context for all commands.
Functions§
- do_
main_ and_ drop_ locals - Wrapper function for
mainto ensure thatDropis called for local variables, sincestd::process::exitwill skip them. You probably want to callinvoke_subcommand_maininstead. - invoke_
subcommand_ main - Invoke the provided subcommand main function. This should be used in the
main.rsfile for the subcommand executable. For example: