@tiny-fish/cli 0.53.1-next.442 → 0.53.1-next.443

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,7 @@ interface Page<T> {
16
16
  total: number;
17
17
  page: number;
18
18
  total_pages: number;
19
+ has_more?: boolean;
19
20
  }
20
21
  export declare function printPage<T>(result: Page<T>, pretty: boolean | undefined, line: (item: T) => string): void;
21
22
  export {};
@@ -43,5 +43,8 @@ export function printPage(result, pretty, line) {
43
43
  outLine('No items.');
44
44
  for (const item of result.items)
45
45
  outLine(line(item));
46
- outLine(`Page ${result.page} of ${result.total_pages} (${result.total} total)`);
46
+ // Team lists count only through this page while more follow.
47
+ const atLeast = result.has_more || (result.items.length === 0 && result.page > 1);
48
+ const bound = atLeast ? 'at least ' : '';
49
+ outLine(`Page ${result.page} of ${bound}${result.total_pages} (${bound}${result.total} total)`);
47
50
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiny-fish/cli",
3
- "version": "0.53.1-next.442",
3
+ "version": "0.53.1-next.443",
4
4
  "description": "TinyFish CLI — run web automations from your terminal",
5
5
  "type": "module",
6
6
  "bin": {