[chore] Abstract command logic outside of the Program class #2
Loading…
Reference in a new issue
No description provided.
Delete branch ":main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Splits the program into distinct command units, for easy expansion in the future.
Each command comes with a
BeforeExecutioncallback that can force custom exit codes and error messages to the user, as well as anInvokeAsyncentrypoint which returns just an ExitCode (logging is expected to be handled by the body).