INNER CODE UNIT · Python

Result

renezander030/capcut-cli · python/capcut/__init__.py:66

class Result:
    """One CLI invocation: exit status, raw streams, and the parsed JSON (``data``)."""

    cmd: str
    args: List[str]
    status: int
    stdout: str
    stderr: str
    data: Any = None

    @property
    def ok(self) -> bool:
        return self.status == 0

    @property
    def error(self) -> Optional[str]:
        """The CLI's own error message when it printed ``{"error": ...}``."""
        if isinstance(self.data, dict) and isinstance(self.data.get("error"), str):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…