Created
September 22, 2018 19:14
-
-
Save JayBazuzi/406e4e4f84391cca7596de4a7805fe4f to your computer and use it in GitHub Desktop.
One way to factor a script for a multi-step process.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def main(): | |
return (MergeDownProcess(_WORKSPACE_DIR) | |
.get_user_intent() | |
.ensure_on_sparse_branch() | |
.ensure_no_files_opened() | |
.ensure_something_to_integrate() | |
.merge() | |
.create_changelist_for_any_changes() | |
.ensure_resolved() | |
.submit_any_changes() | |
.report_results()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment