notifications

package
v1.0.0-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package notifications provides notification commands for GitScrum CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdNotifications

func NewCmdNotifications(f *factory.Factory) *cobra.Command

NewCmdNotifications creates the notifications command

func NewCmdNotificationsClear

func NewCmdNotificationsClear(f *factory.Factory) *cobra.Command

NewCmdNotificationsClear clears all notifications

func NewCmdNotificationsRead

func NewCmdNotificationsRead(f *factory.Factory) *cobra.Command

NewCmdNotificationsRead marks a notification as read

func NewCmdNotificationsReadAll

func NewCmdNotificationsReadAll(f *factory.Factory) *cobra.Command

NewCmdNotificationsReadAll marks all notifications as read

func NewCmdSearch

func NewCmdSearch(f *factory.Factory) *cobra.Command

NewCmdSearch creates the global search command

Types

type FeedUser

type FeedUser struct {
	UUID     string `json:"uuid"`
	Name     string `json:"name"`
	Username string `json:"username"`
}

FeedUser represents a user in a feed notification

type Notification

type Notification struct {
	UUID      string            `json:"uuid"`
	User      FeedUser          `json:"user"`
	Resource  string            `json:"resource"`
	Action    string            `json:"action"`
	Message   string            `json:"message"`
	CreatedAt *api.DateResource `json:"created_at"`
}

Notification represents a feed notification (FeedUserResource)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL