def branches_to_be_deleted(self): """Return branches to be deleted.""" branches = self.branches_to_be_deleted_excluding_skipped() if len(branches) > 0: Formatter.print_pretty_warn_message("Following local branches would \ be deleted:") return branches else: Formatter.print_pretty_fail_message("No branches to be deleted") return []
def branches_to_be_deleted(self): """Return branches to be deleted.""" branches = self.branches_to_be_deleted_excluding_skipped() if len(branches) > 0: Formatter.print_pretty_warn_message( "Following local branches would \ be deleted:") return branches else: Formatter.print_pretty_fail_message("No branches to be deleted") return []
def warn_if_no_branch_matches_pattern(self, branches): """Show message if no branch matches the specified pattern.""" if len(branches) == 0: Formatter.print_pretty_fail_message("No branch name matches the \ given skip pattern: " + " " + Formatter.UNDERLINE + str(self. skip_pattern()))
def warn_if_no_branch_matches_pattern(self, branches): """Show message if no branch matches the specified pattern.""" if len(branches) == 0: Formatter.print_pretty_fail_message("No branch name matches the \ given skip pattern: " + " " + Formatter.UNDERLINE + str(self.skip_pattern()))