Implement notification subcommands #389
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user