mirror of
				https://gitea.com/gitea/tea.git
				synced 2025-10-31 01:05:26 +01:00 
			
		
		
		
	 0e54bae0c4
			
		
	
	0e54bae0c4
	
	
	
		
			
			I tested this somewhat, but I haven't been using the cli before so I'm not sure if there are changes - there shouldn't be though. Reviewed-on: https://gitea.com/gitea/tea/pulls/760 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: TheFox0x7 <thefox0x7@gmail.com> Co-committed-by: TheFox0x7 <thefox0x7@gmail.com>
		
			
				
	
	
		
			29 lines
		
	
	
		
			860 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			860 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // Copyright 2020 The Gitea Authors. All rights reserved.
 | |
| // SPDX-License-Identifier: MIT
 | |
| 
 | |
| package cmd
 | |
| 
 | |
| import (
 | |
| 	"code.gitea.io/tea/cmd/notifications"
 | |
| 
 | |
| 	"github.com/urfave/cli/v3"
 | |
| )
 | |
| 
 | |
| // CmdNotifications is the main command to operate with notifications
 | |
| var CmdNotifications = cli.Command{
 | |
| 	Name:        "notifications",
 | |
| 	Aliases:     []string{"notification", "n"},
 | |
| 	Category:    catHelpers,
 | |
| 	Usage:       "Show notifications",
 | |
| 	Description: "Show notifications, by default based on the current repo if available",
 | |
| 	Action:      notifications.RunNotificationsList,
 | |
| 	Commands: []*cli.Command{
 | |
| 		¬ifications.CmdNotificationsList,
 | |
| 		¬ifications.CmdNotificationsMarkRead,
 | |
| 		¬ifications.CmdNotificationsMarkUnread,
 | |
| 		¬ifications.CmdNotificationsMarkPinned,
 | |
| 		¬ifications.CmdNotificationsUnpin,
 | |
| 	},
 | |
| 	Flags: notifications.CmdNotificationsList.Flags,
 | |
| }
 |