Skip to content

feat(cli): Add --last to conversation print#503

Open
JeanMertz wants to merge 2 commits intomainfrom
prr72
Open

feat(cli): Add --last to conversation print#503
JeanMertz wants to merge 2 commits intomainfrom
prr72

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

The conversation print command now accepts a --last [N] flag to limit output to the last N turns of a conversation. When used without a value, it defaults to printing only the most recent turn.

This is useful for quickly reviewing where a conversation left off without having to scroll through the entire history. When N exceeds the number of available turns, all turns are printed. --last 0 produces no output.

For example: jp conversation print --last shows only the final turn, while jp conversation print --last 3 shows the last three.

The `conversation print` command now accepts a `--last [N]` flag to
limit output to the last N turns of a conversation. When used without a
value, it defaults to printing only the most recent turn.

This is useful for quickly reviewing where a conversation left off
without having to scroll through the entire history. When N exceeds the
number of available turns, all turns are printed. `--last 0` produces no
output.

For example: `jp conversation print --last` shows only the final turn,
while `jp conversation print --last 3` shows the last three.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
Signed-off-by: Jean Mertz <git@jeanmertz.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant