2020-07-17 15:30:02 +00: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-05 17:11:17 +00:00
|
|
|
"code.gitea.io/tea/cmd/notifications"
|
2020-09-30 05:11:33 +00:00
|
|
|
|
2020-07-17 15:30:02 +00:00
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
)
|
|
|
|
|
|
|
|
// CmdNotifications is the main command to operate with notifications
|
|
|
|
var CmdNotifications = cli.Command{
|
|
|
|
Name: "notifications",
|
2020-12-16 16:47:40 +00:00
|
|
|
Aliases: []string{"notification", "n"},
|
2020-12-21 13:37:20 +00:00
|
|
|
Category: catHelpers,
|
2020-09-27 14:35:53 +00:00
|
|
|
Usage: "Show notifications",
|
2021-09-05 17:11:17 +00: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 15:30:02 +00:00
|
|
|
}
|