2020-07-17 23:30:02 +08:00
|
|
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
2021-09-06 01:11:17 +08:00
|
|
|
"code.gitea.io/tea/cmd/notifications"
|
2020-09-30 13:11:33 +08:00
|
|
|
|
2020-07-17 23:30:02 +08:00
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CmdNotifications is the main command to operate with notifications
|
|
|
|
var CmdNotifications = cli.Command{
|
|
|
|
Name: "notifications",
|
2020-12-17 00:47:40 +08:00
|
|
|
Aliases: []string{"notification", "n"},
|
2020-12-21 21:37:20 +08:00
|
|
|
Category: catHelpers,
|
2020-09-27 22:35:53 +08:00
|
|
|
Usage: "Show notifications",
|
2021-09-06 01:11:17 +08: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 23:30:02 +08:00
|
|
|
}
|