26
26
class ReportCommand : public InteractionModelReports , public ModelCommand , public chip ::app::ReadClient::Callback
27
27
{
28
28
public:
29
- ReportCommand (const char * commandName, CredentialIssuerCommands * credsIssuerConfig) :
30
- InteractionModelReports (this ), ModelCommand(commandName, credsIssuerConfig, /* supportsMultipleEndpoints = */ true )
29
+ ReportCommand (const char * commandName, CredentialIssuerCommands * credsIssuerConfig, const char * helpText = nullptr ) :
30
+ InteractionModelReports (this ),
31
+ ModelCommand (commandName, credsIssuerConfig, /* supportsMultipleEndpoints = */ true , helpText)
31
32
{}
32
33
33
34
// ///////// ReadClient Callback Interface /////////
@@ -133,8 +134,8 @@ class ReportCommand : public InteractionModelReports, public ModelCommand, publi
133
134
class ReadCommand : public ReportCommand
134
135
{
135
136
protected:
136
- ReadCommand (const char * commandName, CredentialIssuerCommands * credsIssuerConfig) :
137
- ReportCommand (commandName, credsIssuerConfig)
137
+ ReadCommand (const char * commandName, CredentialIssuerCommands * credsIssuerConfig, const char * helpText = nullptr ) :
138
+ ReportCommand (commandName, credsIssuerConfig, helpText )
138
139
{}
139
140
140
141
void OnDone (chip::app::ReadClient * aReadClient) override
@@ -147,8 +148,8 @@ class ReadCommand : public ReportCommand
147
148
class SubscribeCommand : public ReportCommand
148
149
{
149
150
protected:
150
- SubscribeCommand (const char * commandName, CredentialIssuerCommands * credsIssuerConfig) :
151
- ReportCommand (commandName, credsIssuerConfig)
151
+ SubscribeCommand (const char * commandName, CredentialIssuerCommands * credsIssuerConfig, const char * helpText = nullptr ) :
152
+ ReportCommand (commandName, credsIssuerConfig, helpText )
152
153
{}
153
154
154
155
void OnSubscriptionEstablished (chip::SubscriptionId subscriptionId) override
@@ -187,7 +188,8 @@ class SubscribeCommand : public ReportCommand
187
188
class ReadAttribute : public ReadCommand
188
189
{
189
190
public:
190
- ReadAttribute (CredentialIssuerCommands * credsIssuerConfig) : ReadCommand(" read-by-id" , credsIssuerConfig)
191
+ ReadAttribute (CredentialIssuerCommands * credsIssuerConfig) :
192
+ ReadCommand (" read-by-id" , credsIssuerConfig, " Read attributes for the given attribute path (which may include wildcards)." )
191
193
{
192
194
AddArgument (" cluster-ids" , 0 , UINT32_MAX, &mClusterIds ,
193
195
" Comma-separated list of cluster ids to read from (e.g. \" 6\" or \" 8,0x201\" ).\n Allowed to be 0xFFFFFFFF to "
@@ -198,7 +200,8 @@ class ReadAttribute : public ReadCommand
198
200
}
199
201
200
202
ReadAttribute (chip::ClusterId clusterId, CredentialIssuerCommands * credsIssuerConfig) :
201
- ReadCommand (" read-by-id" , credsIssuerConfig), mClusterIds (1 , clusterId)
203
+ ReadCommand (" read-by-id" , credsIssuerConfig, " Read attributes from this cluster; allows wildcard endpoint and attribute." ),
204
+ mClusterIds (1 , clusterId)
202
205
{
203
206
AddAttributeIdArgument ();
204
207
AddCommonArguments ();
@@ -245,7 +248,9 @@ class ReadAttribute : public ReadCommand
245
248
class SubscribeAttribute : public SubscribeCommand
246
249
{
247
250
public:
248
- SubscribeAttribute (CredentialIssuerCommands * credsIssuerConfig) : SubscribeCommand(" subscribe-by-id" , credsIssuerConfig)
251
+ SubscribeAttribute (CredentialIssuerCommands * credsIssuerConfig) :
252
+ SubscribeCommand (" subscribe-by-id" , credsIssuerConfig,
253
+ " Subscribe to attributes for the given attribute path (which may include wildcards)." )
249
254
{
250
255
AddArgument (" cluster-ids" , 0 , UINT32_MAX, &mClusterIds ,
251
256
" Comma-separated list of cluster ids to subscribe to (e.g. \" 6\" or \" 8,0x201\" ).\n Allowed to be 0xFFFFFFFF "
@@ -256,7 +261,9 @@ class SubscribeAttribute : public SubscribeCommand
256
261
}
257
262
258
263
SubscribeAttribute (chip::ClusterId clusterId, CredentialIssuerCommands * credsIssuerConfig) :
259
- SubscribeCommand (" subscribe-by-id" , credsIssuerConfig), mClusterIds (1 , clusterId)
264
+ SubscribeCommand (" subscribe-by-id" , credsIssuerConfig,
265
+ " Subscribe to attributes from this cluster; allows wildcard endpoint and attribute." ),
266
+ mClusterIds (1 , clusterId)
260
267
{
261
268
AddAttributeIdArgument ();
262
269
AddCommonArguments ();
@@ -312,7 +319,8 @@ class SubscribeAttribute : public SubscribeCommand
312
319
class ReadEvent : public ReadCommand
313
320
{
314
321
public:
315
- ReadEvent (CredentialIssuerCommands * credsIssuerConfig) : ReadCommand(" read-event-by-id" , credsIssuerConfig)
322
+ ReadEvent (CredentialIssuerCommands * credsIssuerConfig) :
323
+ ReadCommand (" read-event-by-id" , credsIssuerConfig, " Read events for the given event path (which may include wildcards)." )
316
324
{
317
325
AddArgument (" cluster-id" , 0 , UINT32_MAX, &mClusterIds );
318
326
AddArgument (" event-id" , 0 , UINT32_MAX, &mEventIds );
@@ -322,7 +330,8 @@ class ReadEvent : public ReadCommand
322
330
}
323
331
324
332
ReadEvent (chip::ClusterId clusterId, CredentialIssuerCommands * credsIssuerConfig) :
325
- ReadCommand (" read-event-by-id" , credsIssuerConfig), mClusterIds (1 , clusterId)
333
+ ReadCommand (" read-event-by-id" , credsIssuerConfig, " Read events from this cluster; allows wildcard endpoint and event." ),
334
+ mClusterIds (1 , clusterId)
326
335
{
327
336
AddArgument (" event-id" , 0 , UINT32_MAX, &mEventIds );
328
337
AddArgument (" fabric-filtered" , 0 , 1 , &mFabricFiltered );
@@ -356,7 +365,9 @@ class ReadEvent : public ReadCommand
356
365
class SubscribeEvent : public SubscribeCommand
357
366
{
358
367
public:
359
- SubscribeEvent (CredentialIssuerCommands * credsIssuerConfig) : SubscribeCommand(" subscribe-event-by-id" , credsIssuerConfig)
368
+ SubscribeEvent (CredentialIssuerCommands * credsIssuerConfig) :
369
+ SubscribeCommand (" subscribe-event-by-id" , credsIssuerConfig,
370
+ " Subscribe to events for the given event path (which may include wildcards)." )
360
371
{
361
372
AddArgument (" cluster-id" , 0 , UINT32_MAX, &mClusterIds );
362
373
AddArgument (" event-id" , 0 , UINT32_MAX, &mEventIds );
@@ -365,7 +376,9 @@ class SubscribeEvent : public SubscribeCommand
365
376
}
366
377
367
378
SubscribeEvent (chip::ClusterId clusterId, CredentialIssuerCommands * credsIssuerConfig) :
368
- SubscribeCommand (" subscribe-event-by-id" , credsIssuerConfig), mClusterIds (1 , clusterId)
379
+ SubscribeCommand (" subscribe-event-by-id" , credsIssuerConfig,
380
+ " Subscribe to events from this cluster; allows wildcard endpoint and event." ),
381
+ mClusterIds (1 , clusterId)
369
382
{
370
383
AddArgument (" event-id" , 0 , UINT32_MAX, &mEventIds );
371
384
AddCommonArguments ();
@@ -447,7 +460,8 @@ class ReadNone : public ReadCommand
447
460
class ReadAll : public ReadCommand
448
461
{
449
462
public:
450
- ReadAll (CredentialIssuerCommands * credsIssuerConfig) : ReadCommand(" read-all" , credsIssuerConfig)
463
+ ReadAll (CredentialIssuerCommands * credsIssuerConfig) :
464
+ ReadCommand (" read-all" , credsIssuerConfig, " Read attributes and events for the given paths (which may include wildcards)." )
451
465
{
452
466
AddArgument (" cluster-ids" , 0 , UINT32_MAX, &mClusterIds ,
453
467
" Comma-separated list of cluster ids to read from (e.g. \" 6\" or \" 8,0x201\" ).\n Allowed to be 0xFFFFFFFF to "
@@ -513,7 +527,9 @@ class SubscribeNone : public SubscribeCommand
513
527
class SubscribeAll : public SubscribeCommand
514
528
{
515
529
public:
516
- SubscribeAll (CredentialIssuerCommands * credsIssuerConfig) : SubscribeCommand(" subscribe-all" , credsIssuerConfig)
530
+ SubscribeAll (CredentialIssuerCommands * credsIssuerConfig) :
531
+ SubscribeCommand (" subscribe-all" , credsIssuerConfig,
532
+ " Subscribe to attributes and events for the given paths (which may include wildcards)." )
517
533
{
518
534
AddArgument (" cluster-ids" , 0 , UINT32_MAX, &mClusterIds ,
519
535
" Comma-separated list of cluster ids to read from (e.g. \" 6\" or \" 8,0x201\" ).\n Allowed to be 0xFFFFFFFF to "
0 commit comments