Documentation
¶
Overview ¶
Package list implements the ctx recall list subcommand.
It lists parsed sessions with optional filtering by project, tool, and date range.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the recall list subcommand.
Returns:
- *cobra.Command: Command for listing parsed sessions
func Run ¶
func Run( cmd *cobra.Command, limit int, project, tool, since, until string, allProjects bool, ) error
Run handles the recall list command.
Finds all sessions, applies optional filters, and displays them in a formatted list with project, time, turn count, and preview.
Parameters:
- cmd: Cobra command for output stream
- limit: maximum sessions to display (0 for unlimited)
- project: filter by project name (case-insensitive substring match)
- tool: filter by tool identifier (exact match)
- since: inclusive start date filter (YYYY-MM-DD)
- until: inclusive end date filter (YYYY-MM-DD)
- allProjects: if true, include sessions from all projects
Returns:
- error: non-nil if date parsing or session scanning fails
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.