list

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

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

func Cmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL