add subcomands for notifications #283

Closed
khmarbaise wants to merge 7 commits from khmarbaise/tea:issue-243-add_subcomands_for_notifications into main
2 changed files with 2 additions and 2 deletions
Showing only changes of commit f978713928 - Show all commits

View File

@ -34,7 +34,7 @@ var CmdNotificationsRead = cli.Command{
}, flags.AllDefaultFlags...),
}
// RunNotificationsList list notifications
// RunNotificationsRead will show notifications with status read.
func RunNotificationsRead(ctx *cli.Context) error {
var statuses = []gitea.NotifyStatus{gitea.NotifyStatusRead}
return task.ListNotifications(ctx, statuses)

View File

@ -34,7 +34,7 @@ var CmdNotificationsUnread = cli.Command{
}, flags.AllDefaultFlags...),
}
// RunNotificationsList list notifications
// RunNotificationsUnread will show notifications with status unread.
func RunNotificationsUnread(ctx *cli.Context) error {
var statuses = []gitea.NotifyStatus{gitea.NotifyStatusUnread}
return task.ListNotifications(ctx, statuses)