refactor: rearrange input parameters for git_clone_wrapper

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-05-02 19:11:34 +02:00
parent 6407664e3e
commit 4a5d1a971a
7 changed files with 10 additions and 8 deletions

View File

@@ -13,7 +13,9 @@ from utils.input_utils import get_number_input, get_confirm
from utils.logger import Logger
def git_clone_wrapper(repo: str, branch: Optional[str], target_dir: Path) -> None:
def git_clone_wrapper(
repo: str, target_dir: Path, branch: Optional[str] = None
) -> None:
"""
Clones a repository from the given URL and checks out the specified branch if given.