Crate git_branchless_invoke

Source
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§

CommandContext
Shared context for all commands.

Functions§

do_main_and_drop_locals
Wrapper function for main to ensure that Drop is called for local variables, since std::process::exit will skip them. You probably want to call invoke_subcommand_main instead.
invoke_subcommand_main
Invoke the provided subcommand main function. This should be used in the main.rs file for the subcommand executable. For example: