hyperdock_wasm.tool_reference#
Submodules#
Attributes#
Classes#
Package Contents#
- class hyperdock_wasm.tool_reference.WasmGitToolReference#
Bases:
hyperpocket.repository.ToolReference
- tool_source: str = 'git'#
- repository_url: str#
- git_ref: str#
- ref_sha: str | None = None#
- key() tuple[str, Ellipsis] #
- toolpkg_path() pathlib.Path #
- sync(force_update: bool = False, **kwargs)#
Synchronize the local git repository with the target remote branch.
Check if the SHA of the target ref in the remote repository matches the current local SHA.
If they do not match, fetch the target ref from the remote repository and do a hard reset to align the local repository with the remote version.
- classmethod get_git_branches(repo_url)#
- classmethod parse_repo_url(repo_url: str) tuple[str, str, str] #
Parses a GitHub repository URL with optional branch and path information.
- Returns:
base_repo, branch_name, directory_path
- Return type:
Tuple[str, str, str]
- eject_to_path(dest_path: pathlib.Path, src_sub_path: str = None)#
- class hyperdock_wasm.tool_reference.WasmLocalToolReference(tool_path: str)#
Bases:
hyperpocket.repository.ToolReference
- tool_source: str#
- tool_path: str#
- key() tuple[str, Ellipsis] #
- sync(**kwargs)#
- toolpkg_path() pathlib.Path #
- hyperdock_wasm.tool_reference.WasmToolReference#