Created
September 22, 2018 19:14
-
-
Save JayBazuzi/eafb1067c1a49b968b91f4caaaabe1b6 to your computer and use it in GitHub Desktop.
One way to factor a script for a multi-step process.
This file contains hidden or 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