Skip to content

--limit is not applied to the "Companion members" section #116

Description

@rochala

--limit truncates the Members block, but the Companion members line prints every member unconditionally, joined on a single line.

Repro:

cellar get-external org.apache.commons:commons-lang3:3.14.0 org.apache.commons.lang3.StringUtils --limit 6

Observed: Members is correctly cut off at 6 with a // … 233 more members note, but Companion members dumps all ~240 static methods of StringUtils as one comma-separated line (several thousand tokens).

Expected: the limit (and the // … N more members truncation note) applies to the companion section too. Since the output is designed to be injected into LLM prompts, an unbounded companion dump defeats the purpose of --limit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions