From de57d1874d55908da00a6b584d035d834e32ede9 Mon Sep 17 00:00:00 2001 From: Emma Youndtsmith <90283317+emma-squared@users.noreply.github.com> Date: Thu, 15 May 2025 14:14:21 -0500 Subject: [PATCH] docs: ascending flag in CLI commands (#2549) --- documentation/docs/guides/goose-cli-commands.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/documentation/docs/guides/goose-cli-commands.md b/documentation/docs/guides/goose-cli-commands.md index 4d2dd1a9d5..231a0900b4 100644 --- a/documentation/docs/guides/goose-cli-commands.md +++ b/documentation/docs/guides/goose-cli-commands.md @@ -123,6 +123,7 @@ List all saved sessions. - **`-v, --verbose`**: (Optional) Includes session file paths in the output. - **`-f, --format `**: Specify output format (`text` or `json`). Default is `text`. +- **`--ascending`**: Sort sessions by date in ascending order (oldest first). Default is descending order (newest first). **Usage:** @@ -139,7 +140,10 @@ goose session list --verbose # List sessions in JSON format goose session list --format json ``` - +```bash +# Sort sessions by date in ascending order. +goose session list --ascending +``` --- ### session remove [options]