# Path: l2tscaffolder/helpers/cli.py
# class CLIHelper:
#   def __init__(self, mock_responses=None):
#   def RunCommand(self, command: str):
# 
# Path: l2tscaffolder/lib/errors.py
# class Error(Exception):
# class EngineNotConfigured(Error):
# class FileHandlingError(Error):
# class NoValidDefinition(Error):
# class ScaffolderNotConfigured(Error):
# class UnableToConfigure(Error):
# class WrongCliInput(Error):


import os
import re
from typing import Tuple
from l2tscaffolder.helpers import cli
from l2tscaffolder.lib import errors

    return False

  def GenerateBranchName(self, module_name: str) -> str:
    """Generates a git branch name.

    Args:
      module_name (str): module name to generate a git branch name from.

    Returns:
      str: git branch name.
    """
    branch_name = re.sub('(?<!^)(?=[A-Z])', '_', module_name)
    branch_name = branch_name.lower()
    return branch_name

  def GetActiveBranch(self) -> str:
    """Determines the active branch of the git project.

    Returns:
      str: the active branch of the git project.

    Raises:
      errors.UnableToConfigure: when the tool is not able to get
          the active branch of the git project.
    """
    command = 'git branch --list --no-color'
    exit_code, output, error = self.RunCommand(command)

    if exit_code != 0:

# Path: l2tscaffolder/helpers/cli.py
# class CLIHelper:
#   def __init__(self, mock_responses=None):
#   def RunCommand(self, command: str):
# 
# Path: l2tscaffolder/lib/errors.py
# class Error(Exception):
# class EngineNotConfigured(Error):
# class FileHandlingError(Error):
# class NoValidDefinition(Error):
# class ScaffolderNotConfigured(Error):
# class UnableToConfigure(Error):
# class WrongCliInput(Error):


# Path: l2tscaffolder/helpers/git.py
import os
import re
from typing import Tuple
from l2tscaffolder.helpers import cli
from l2tscaffolder.lib import errors


    return False

  def GenerateBranchName(self, module_name: str) -> str:
    """Generates a git branch name.

    Args:
      module_name (str): module name to generate a git branch name from.

    Returns:
      str: git branch name.
    """
    branch_name = re.sub('(?<!^)(?=[A-Z])', '_', module_name)
    branch_name = branch_name.lower()
    return branch_name

  def GetActiveBranch(self) -> str:
    """Determines the active branch of the git project.

    Returns:
      str: the active branch of the git project.

    Raises:
      errors.UnableToConfigure: when the tool is not able to get
          the active branch of the git project.
    """
    command = 'git branch --list --no-color'
    exit_code, output, error = self.RunCommand(command)

    if exit_code != 0:

      raise errors.UnableToConfigure((