mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-25 08:43:36 +05:00
refactor: rearrange input parameters for git_clone_wrapper
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user