Skip to content

Commit 0a03188

Browse files
committed
🚸 Aligh shorthand
1 parent 528aecd commit 0a03188

File tree

27 files changed

+58
-53
lines changed

27 files changed

+58
-53
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ Use "yutu [command] --help" for more information about a command.
151151

152152
Please refer to [features.md](./features.md) for more information.
153153

154+
## Contributing
155+
156+
Please refer to [CONTRIBUTING.md](./CONTRIBUTING.md) for more information.
157+
154158
## Star History
155159

156160
[![Star History Chart](https://api.star-history.com/svg?repos=eat-pray-ai/yutu&type=Date)](https://star-history.com/#eat-pray-ai/yutu&Date)

cmd/activity/list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ func init() {
3131
)
3232
listCmd.Flags().BoolVarP(&home, "home", "H", true, "true or false")
3333
listCmd.Flags().Int64VarP(
34-
&maxResults, "maxResults", "x", 5,
34+
&maxResults, "maxResults", "n", 5,
3535
"Specifies the maximum number of items that should be returned",
3636
)
37-
listCmd.Flags().BoolVarP(&mine, "mine", "m", true, "true or false")
37+
listCmd.Flags().BoolVarP(&mine, "mine", "M", true, "true or false")
3838
listCmd.Flags().StringVarP(
3939
&publishedAfter, "publishedAfter", "a", "",
4040
"Filter on activities published after this date",
@@ -50,6 +50,6 @@ func init() {
5050
"Comma separated parts",
5151
)
5252
listCmd.Flags().StringVarP(
53-
&output, "output", "o", "", "Output format: json or yaml",
53+
&output, "output", "o", "", "json or yaml",
5454
)
5555
}

cmd/caption/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func init() {
2525
captionCmd.AddCommand(listCmd)
2626

2727
listCmd.Flags().StringVarP(&id, "id", "i", "", "ID of the caption")
28-
listCmd.Flags().StringVarP(&videoId, "videoId", "I", "", "ID of the video")
28+
listCmd.Flags().StringVarP(&videoId, "videoId", "v", "", "ID of the video")
2929
listCmd.Flags().StringVarP(&onBehalfOf, "onBehalfOf", "b", "", "")
3030
listCmd.Flags().StringVarP(&onBehalfOfContentOwner, "onBehalfOfContentOwner", "B", "", "")
3131
listCmd.Flags().StringArrayVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Comma separated parts")

cmd/channel/list.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func init() {
3131
channelCmd.AddCommand(listCmd)
3232

3333
listCmd.Flags().StringVarP(
34-
&categoryId, "categoryId", "c", "",
34+
&categoryId, "categoryId", "g", "",
3535
"Return the channels within the specified guide category ID",
3636
)
3737
listCmd.Flags().StringVarP(
@@ -49,26 +49,26 @@ func init() {
4949
&id, "id", "i", "", "Return the channels with the specified IDs",
5050
)
5151
listCmd.Flags().BoolVarP(
52-
&managedByMe, "managedByMe", "M", false,
52+
&managedByMe, "managedByMe", "E", false,
5353
"Specify the maximum number of items that should be returned",
5454
)
5555
listCmd.Flags().Int64VarP(
5656
&maxResults, "maxResults", "n", 5,
5757
"The maximum number of items that should be returned",
5858
)
5959
listCmd.Flags().BoolVarP(
60-
&mine, "mine", "m", true,
60+
&mine, "mine", "M", true,
6161
"Return the ids of channels owned by the authenticated user",
6262
)
6363
listCmd.Flags().BoolVarP(
64-
&mySubscribers, "mySubscribers", "s", false,
64+
&mySubscribers, "mySubscribers", "S", false,
6565
"Return the channels subscribed to the authenticated user",
6666
)
6767
listCmd.Flags().StringVarP(
6868
&onBehalfOfContentOwner, "onBehalfOfContentOwner", "b", "", "",
6969
)
7070
listCmd.Flags().StringVarP(
71-
&output, "output", "o", "", "Output format: json or yaml",
71+
&output, "output", "o", "", "json or yaml",
7272
)
7373
listCmd.Flags().StringArrayVarP(
7474
&parts, "parts", "p", []string{"id", "snippet", "status"},

cmd/channelSection/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func init() {
3030
&channelId, "channelId", "c", "", " Return the ChannelSections owned by the specified channel ID",
3131
)
3232
listCmd.Flags().StringVarP(&hl, "hl", "l", "", "Return content in specified language")
33-
listCmd.Flags().BoolVarP(&mine, "mine", "m", false, "Return the ChannelSections owned by the authenticated user")
33+
listCmd.Flags().BoolVarP(&mine, "mine", "M", false, "Return the ChannelSections owned by the authenticated user")
3434
listCmd.Flags().StringVarP(&onBehalfOfContentOwner, "onBehalfOfContentOwner", "b", "", "")
3535
listCmd.Flags().StringArrayVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Comma separated parts")
3636
listCmd.Flags().StringVarP(&output, "output", "o", "json", "json or yaml")

cmd/comment/insert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ func init() {
2828

2929
insertCmd.Flags().StringVarP(&authorChannelId, "authorChannelId", "a", "", "Channel ID of the comment author")
3030
insertCmd.Flags().StringVarP(&channelId, "channelId", "c", "", "Channel ID of the video owner")
31-
insertCmd.Flags().BoolVarP(&canRate, "canRate", "r", false, "Whether the viewer can rate the comment")
32-
insertCmd.Flags().StringVarP(&parentId, "parentId", "p", "", "ID of the parent comment")
31+
insertCmd.Flags().BoolVarP(&canRate, "canRate", "R", false, "Whether the viewer can rate the comment")
32+
insertCmd.Flags().StringVarP(&parentId, "parentId", "P", "", "ID of the parent comment")
3333
insertCmd.Flags().StringVarP(&textOriginal, "textOriginal", "t", "", "Text of the comment")
3434
insertCmd.Flags().StringVarP(&videoId, "videoId", "v", "", "ID of the video")
3535
insertCmd.Flags().StringVarP(&output, "output", "o", "", "json, yaml or silent")

cmd/comment/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func init() {
2626

2727
listCmd.Flags().StringSliceVarP(&ids, "ids", "i", []string{}, "Comma separated ids of comments")
2828
listCmd.Flags().Int64VarP(
29-
&maxResults, "maxResults", "m", 5, "Specifies the maximum number of items that should be returned",
29+
&maxResults, "maxResults", "n", 5, "Specifies the maximum number of items that should be returned",
3030
)
3131
listCmd.Flags().StringVarP(&parentId, "parentId", "P", "", "Returns replies to the specified comment")
3232
listCmd.Flags().StringVarP(&textFormat, "textFormat", "t", "", "textFormatUnspecified, html(default) or plainText")

cmd/comment/setModerationStatus.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ func init() {
2626
setModerationStatusCmd.Flags().StringVarP(
2727
&moderationStatus, "moderationStatus", "s", "", "heldForReview, published or rejected",
2828
)
29-
setModerationStatusCmd.Flags().BoolVarP(&banAuthor, "banAuthor", "b", false, "true or false")
29+
setModerationStatusCmd.Flags().BoolVarP(&banAuthor, "banAuthor", "A", false, "true or false")
3030
setModerationStatusCmd.Flags().StringVarP(&output, "output", "o", "", "json, yaml or silent")
3131
}

cmd/comment/update.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ func init() {
2525
commentCmd.AddCommand(updateCmd)
2626

2727
updateCmd.Flags().StringSliceVarP(&ids, "id", "i", []string{}, "ID of the comment")
28-
updateCmd.Flags().BoolVarP(&canRate, "canRate", "r", false, "Whether the viewer can rate the comment")
28+
updateCmd.Flags().BoolVarP(&canRate, "canRate", "R", false, "Whether the viewer can rate the comment")
2929
updateCmd.Flags().StringVarP(&textOriginal, "textOriginal", "t", "", "Text of the comment")
30-
updateCmd.Flags().StringVarP(&viewerRating, "viewerRating", "v", "", "none, like or dislike")
30+
updateCmd.Flags().StringVarP(&viewerRating, "viewerRating", "r", "", "none, like or dislike")
3131
updateCmd.Flags().StringVarP(&output, "output", "o", "", "json, yaml or silent")
3232
}

cmd/commentThread/list.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,15 @@ func init() {
3838
&channelId, "channelId", "c", "", "Returns the comment threads for all the channel comments",
3939
)
4040
listCmd.Flags().Int64VarP(
41-
&maxResults, "maxResults", "m", 5, "Specifies the maximum number of items that should be returned",
41+
&maxResults, "maxResults", "n", 5, "Specifies the maximum number of items that should be returned",
4242
)
4343
listCmd.Flags().StringVarP(
44-
&moderationStatus, "moderationStatus", "M", "", "published(default), heldForReview, likelySpam or rejected",
44+
&moderationStatus, "moderationStatus", "m", "", "published(default), heldForReview, likelySpam or rejected",
4545
)
46-
listCmd.Flags().StringVarP(&order, "order", "o", "", "orderUnspecified, time(default) or relevance")
46+
listCmd.Flags().StringVarP(&order, "order", "O", "", "orderUnspecified, time(default) or relevance")
4747
listCmd.Flags().StringVarP(&searchTerms, "searchTerms", "s", "", "Search terms")
4848
listCmd.Flags().StringVarP(&textFormat, "textFormat", "t", "", "textFormatUnspecified or html(default)")
4949
listCmd.Flags().StringVarP(&videoId, "videoId", "v", "", "Returns the comment threads of the specified video")
5050
listCmd.Flags().StringSliceVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Parts to be fetched")
51+
listCmd.Flags().StringVarP(&output, "output", "o", "", "json, yaml or silent")
5152
}

0 commit comments

Comments
 (0)