Implement notification subcommands #389

Merged
6543 merged 20 commits from noerw/tea:notification-subcmds into master 2021-09-05 17:11:17 +00:00
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)