-
Notifications
You must be signed in to change notification settings - Fork 4
feat: [PRODUCT-608], [ENG-2210] add filter on sf nodes list
#230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
37036d2 to
53a6501
Compare
Greptile OverviewGreptile SummaryAdded filtering and pagination capabilities to the Key changes:
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant CLI as sf nodes list
participant API as Nodes API
participant Filter as Filter Logic
participant Display as Display Logic
User->>CLI: sf nodes list --status pending running --limit 100
CLI->>API: client.nodes.list()
API-->>CLI: Return all nodes
CLI->>Filter: Apply status filter
Filter->>Filter: Check if options.status?.length
Filter->>Filter: Filter nodes by status (pending, running)
Filter-->>CLI: Return filteredNodes
CLI->>Display: Check output format
alt JSON output (--json)
Display->>User: JSON.stringify(filteredNodes)
else Verbose output (--verbose)
Display->>Display: Slice filteredNodes to limit
Display->>User: Render NodesVerboseDisplay
else Table output (default)
Display->>Display: createNodesTable(filteredNodes, limit)
Display->>User: Print table with limit message
Display->>User: Print "Found X nodes total" message
end
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6 files reviewed, no comments
sf nodes listsf nodes list
sf nodes listsf nodes list
|
@greptileai review this again |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 files reviewed, 1 comment
Finishes and expands on #225