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