chat

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 chat provides chat/discussions commands for GitScrum CLI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdChat

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

NewCmdChat creates the chat command group

func NewCmdChatChannels

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

NewCmdChatChannels lists channels

func NewCmdChatSend

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

NewCmdChatSend sends a message

func NewCmdChatUnread

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

NewCmdChatUnread shows unread messages

Types

type Channel

type Channel struct {
	UUID        string `json:"uuid"`
	Slug        string `json:"slug"`
	Name        string `json:"name"`
	Description string `json:"description"`
	UnreadCount int    `json:"unread_count"`
	LastMessage struct {
		Content   string            `json:"content"`
		CreatedAt *api.DateResource `json:"created_at"`
		User      struct {
			Name string `json:"name"`
		} `json:"user"`
	} `json:"last_message"`
}

Channel represents a chat channel

type Message

type Message struct {
	UUID      string            `json:"uuid"`
	Content   string            `json:"content"`
	CreatedAt *api.DateResource `json:"created_at"`
	User      struct {
		Name   string `json:"name"`
		Avatar string `json:"avatar"`
	} `json:"user"`
}

Message represents a chat message

Jump to

Keyboard shortcuts

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