INNER CODE UNIT · Python

idx

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

                        if idx == len(parts) - 1:
                            callback = getattr(cmd, "callback", None)
                        else:
                            # navigate into sub-typer if present
                            sub_app = getattr(cmd, "typer_instance", None)
                        break
                current_app = sub_app if sub_app is not None else current_app
                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",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…