pub fn list_sessions(
store: &SessionStore,
tags: &[String],
tag_all: bool,
json: bool,
output: &Output,
) -> Result<()>Expand description
List sessions with optional tag filtering, pagination, and JSON output.
Loads only headers and footers for efficiency. Sessions are sorted by
started_at descending (most recent first).
§Tag filtering
- If
tagsis non-empty andtag_allis false: sessions matching ANY tag are shown - If
tagsis non-empty andtag_allis true: sessions matching ALL tags are shown
§Pagination
In interactive terminals, shows 20 sessions at a time with a “Show more?” prompt.
§Errors
Returns an error if reading sessions from the store fails.