2020-07-17 11:30:02 -04:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2023-09-07 21:40:02 -04:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-07-17 11:30:02 -04:00
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2021-09-05 13:11:17 -04:00
|
|
|
"code.gitea.io/tea/cmd/notifications"
|
2020-09-30 01:11:33 -04:00
|
|
|
|
2020-07-17 11:30:02 -04:00
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CmdNotifications is the main command to operate with notifications
|
|
|
|
var CmdNotifications = cli.Command{
|
|
|
|
Name: "notifications",
|
2020-12-16 11:47:40 -05:00
|
|
|
Aliases: []string{"notification", "n"},
|
2020-12-21 08:37:20 -05:00
|
|
|
Category: catHelpers,
|
2020-09-27 10:35:53 -04:00
|
|
|
Usage: "Show notifications",
|
2021-09-05 13:11:17 -04:00
|
|
|
Description: "Show notifications, by default based on the current repo if available",
|
|
|
|
Action: notifications.RunNotificationsList,
|
|
|
|
Subcommands: []*cli.Command{
|
|
|
|
¬ifications.CmdNotificationsList,
|
|
|
|
¬ifications.CmdNotificationsMarkRead,
|
|
|
|
¬ifications.CmdNotificationsMarkUnread,
|
|
|
|
¬ifications.CmdNotificationsMarkPinned,
|
|
|
|
¬ifications.CmdNotificationsUnpin,
|
|
|
|
},
|
|
|
|
Flags: notifications.CmdNotificationsList.Flags,
|
2020-07-17 11:30:02 -04:00
|
|
|
}
|