2020-07-17 21:00:02 +05:30
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
2023-09-08 07:10:02 +05:30
|
|
|
// SPDX-License-Identifier: MIT
|
2020-07-17 21:00:02 +05:30
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2021-09-05 22:41:17 +05:30
|
|
|
"code.gitea.io/tea/cmd/notifications"
|
2020-09-30 10:41:33 +05:30
|
|
|
|
2020-07-17 21:00:02 +05:30
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CmdNotifications is the main command to operate with notifications
|
|
|
|
var CmdNotifications = cli.Command{
|
|
|
|
Name: "notifications",
|
2020-12-16 22:17:40 +05:30
|
|
|
Aliases: []string{"notification", "n"},
|
2020-12-21 19:07:20 +05:30
|
|
|
Category: catHelpers,
|
2020-09-27 20:05:53 +05:30
|
|
|
Usage: "Show notifications",
|
2021-09-05 22:41:17 +05:30
|
|
|
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 21:00:02 +05:30
|
|
|
}
|