INNER CODE UNIT · Python

git_value

teaql/teaql-agent-kit · tools/teaql_workspace.py:38

def git_value(repo: Path, *args: str) -> str | None:
    result = subprocess.run(
        ["git", "-C", str(repo), *args], text=True, capture_output=True, check=False
    )
    return result.stdout.strip() if result.returncode == 0 else None


def resolve(config_path: Path, data: dict) -> dict:
    source = data["runtimeSource"]
    rows = {}
    errors = []
    for language in LANGUAGES:
        entry = data["runtimes"][language]
        if not isinstance(entry, dict):
            errors.append(f"{language}: configuration must be an object")
            continue
        version = entry.get("version")
        path_value = entry.get("path")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…