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
yt_cli 2.3.0+1: security hardening, CLI example, doc improvements
- Add SecurityUtil for path validation, JSON schema validation, OAuth callback validation, and token file permissions
- Replace example/yt_cli_example.dart with example/README.md showing CLI usage
- Update CHANGELOG.md with current version
- Add Activities API command
- Update .pubignore to exclude doc/ and *.iml
Copy file name to clipboardExpand all lines: packages/yt_cli/lib/meta.dart
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,5 +6,5 @@ library;
6
6
import'dart:convert'show json;
7
7
8
8
final pubSpec = json.decode(
9
-
'{"name":"yt_cli","version":"2.2.6+6","description":"A CLI tool for the YouTube Data, Live Streaming, and Analytics APIs.","homepage":"https://github.com/cdavis-code/yt_workspace","repository":"https://github.com/cdavis-code/yt_workspace/tree/main/packages/yt_cli","issue_tracker":"https://github.com/cdavis-code/yt_workspace/issues"}',
9
+
'{"name":"yt_cli","version":"2.3.0+1","description":"A CLI tool for the YouTube Data, Live Streaming, and Analytics APIs.","homepage":"https://github.com/cdavis-code/yt_workspace","repository":"https://github.com/cdavis-code/yt_workspace/tree/main/packages/yt_cli","issue_tracker":"https://github.com/cdavis-code/yt_workspace/issues"}',
'Returns a list of channel activity events that match the request criteria.';
27
+
28
+
@override
29
+
Stringget name =>'list';
30
+
31
+
YoutubeListActivitiesCommand() {
32
+
argParser
33
+
..addOption(
34
+
'part',
35
+
defaultsTo:'snippet,contentDetails',
36
+
help:
37
+
'The part parameter specifies the activity resource parts that the API response will include.',
38
+
)
39
+
..addOption(
40
+
'channel-id',
41
+
valueHelp:'YouTube channel id',
42
+
help:
43
+
'The channelId parameter specifies a unique YouTube channel ID. The API will then return a list of that channel\'s activities.',
44
+
)
45
+
..addFlag(
46
+
'mine',
47
+
defaultsTo:false,
48
+
negatable:false,
49
+
help:
50
+
'This parameter can only be used in a properly authorized request. Set this parameter\'s value to true to retrieve a feed of the authenticated user\'s activities.',
51
+
)
52
+
..addOption(
53
+
'max-results',
54
+
defaultsTo:'5',
55
+
valueHelp:'number',
56
+
help:
57
+
'The maxResults parameter specifies the maximum number of items that should be returned in the result set. Acceptable values are 1 to 50, inclusive. The default value is 5.',
58
+
)
59
+
..addOption(
60
+
'page-token',
61
+
valueHelp:'token',
62
+
help:
63
+
'The pageToken parameter identifies a specific page in the result set that should be returned.',
64
+
)
65
+
..addOption(
66
+
'published-after',
67
+
valueHelp:'date',
68
+
help:
69
+
'The publishedAfter parameter specifies the earliest date and time that an activity could have occurred for that activity to be included in the API response. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z).',
70
+
)
71
+
..addOption(
72
+
'published-before',
73
+
valueHelp:'date',
74
+
help:
75
+
'The publishedBefore parameter specifies the date and time before which an activity must have occurred for that activity to be included in the API response. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z).',
76
+
)
77
+
..addOption(
78
+
'region-code',
79
+
valueHelp:'code',
80
+
help:
81
+
'The regionCode parameter instructs the API to return results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.',
0 commit comments