INNER CODE UNIT · Python

idx

CaddyGlow/ccproxy-api · ccproxy/cli/main.py:189

                if not found and idx == len(parts) - 1:
                    # maybe the target is a top-level name even if earlier parts failed
                    pass
            return callback

        # Find existing command callback on the root app or nested apps
        original_callback = _resolve_callback(app, target_name)

        if original_callback is None:
            logger.debug(
                "plugin_argument_extension_target_not_found",
                target_command=target_name,
            )
            return
        # Build all options and construct wrapper
        built: list[tuple[CliArgumentSpec, Any]] = []
        for _, arg_spec in pairs:
            typer_kwargs = dict(arg_spec.typer_kwargs or {})

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…