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
Copy file name to clipboardExpand all lines: pkg/cmd/chat.go
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -136,6 +136,10 @@ var chatsList = cli.Command{
136
136
Usage: "Pagination direction used with 'cursor': 'before' fetches older results, 'after' fetches newer results. Defaults to 'before' when only 'cursor' is provided.",
137
137
QueryPath: "direction",
138
138
},
139
+
&requestflag.Flag[int64]{
140
+
Name: "max-items",
141
+
Usage: "The maximum number of items to return (use -1 for unlimited).",
142
+
},
139
143
},
140
144
Action: handleChatsList,
141
145
HideHelpCommand: true,
@@ -231,6 +235,10 @@ var chatsSearch = cli.Command{
231
235
Usage: "Set to true to only retrieve chats that have unread messages",
232
236
QueryPath: "unreadOnly",
233
237
},
238
+
&requestflag.Flag[int64]{
239
+
Name: "max-items",
240
+
Usage: "The maximum number of items to return (use -1 for unlimited).",
Copy file name to clipboardExpand all lines: pkg/cmd/message.go
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,10 @@ var messagesList = cli.Command{
60
60
Usage: "Pagination direction used with 'cursor': 'before' fetches older results, 'after' fetches newer results. Defaults to 'before' when only 'cursor' is provided.",
61
61
QueryPath: "direction",
62
62
},
63
+
&requestflag.Flag[int64]{
64
+
Name: "max-items",
65
+
Usage: "The maximum number of items to return (use -1 for unlimited).",
66
+
},
63
67
},
64
68
Action: handleMessagesList,
65
69
HideHelpCommand: true,
@@ -138,6 +142,10 @@ var messagesSearch = cli.Command{
138
142
Usage: "Filter by sender: 'me' (messages sent by the authenticated user), 'others' (messages sent by others), or a specific user ID string (user.id).",
139
143
QueryPath: "sender",
140
144
},
145
+
&requestflag.Flag[int64]{
146
+
Name: "max-items",
147
+
Usage: "The maximum number of items to return (use -1 for unlimited).",
0 commit comments