pub fn invoke_subcommand_main<T: Parser>(
f: impl Fn(CommandContext, T) -> EyreExitOr<()>,
)
Expand description
Invoke the provided subcommand main function. This should be used in the
main.rs
file for the subcommand executable. For example:
ⓘ
fn main() {
git_branchless_invoke::invoke_subcommand_main(git_branchless_init::command_main)
}