fix(hive-forge): hint to stderr when list page is full (more results may exist)

This commit is contained in:
iris 2026-07-02 15:15:30 +02:00 committed by mara
commit 26aba38fc6

View file

@ -143,6 +143,18 @@ pub fn run(client: &Client, args: Args) -> Result<()> {
for item in items {
print_row(item);
}
// When the returned page is exactly `--limit` items, more pages
// may exist. Print a hint to stderr so the caller knows to fetch
// the next page rather than assuming the result is complete. Only
// fires on a full page — a short or empty page signals the end.
if items.len() as u64 == args.limit {
eprintln!(
"… {} shown (page {}); more results may exist — re-run with --page {} (or raise --limit).",
args.limit,
args.page,
args.page + 1
);
}
Ok(())
}