You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): account for the page offset in the structured truncation note
The note fired whenever total > count, which misjudges the last page:
--limit 20 --page 2 against a total of 40 printed "use --page for the
rest" even though page 2 is the end. PrintList now takes the page size
and computes hasMore as (page-1)*limit+count < total, so the note only
appears when rows actually remain beyond the current page.
_, _=fmt.Fprintf(ctx.Cmd.ErrOrStderr(), "note: showing %d of %d total results (page %d); raise --limit or use --page for the rest\n", count, total, page)
0 commit comments