(mode: str, hook_type: str, force: bool, append: bool)
Command to install a pre-commit or pre-push hook (local or global).
Command to install a pre-commit or pre-push hook (local or global).
Command to install a pre - commit or pre - push hook ( local or global ) .
def install(mode: str, hook_type: str, force: bool, append: bool) -> int:
    """Command to install a pre-commit or pre-push hook (local or global)."""
    return_code = (
        install_global(hook_type=hook_type, force=force, append=append)
        if mode == "global"
        else install_local(hook_type=hook_type, force=force, append=append)
    )
    sys.exit(return_code)
def install ( mode : str , hook_type : str , force : bool , append : bool ) -> int : return_code = ( install_global ( hook_type = hook_type , force = force , append = append ) if mode == "global" else install_local ( hook_type = hook_type , force = force , append = append ) ) sys . exit ( return_code )