cli

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: MIT Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package cli wires command-line subcommands to the Mattermost client.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is set at release time via -ldflags.

Functions

func Run

func Run(args []string, stdin io.Reader, stdout, stderr io.Writer) int

Run dispatches a command. Returns a process exit code.

Types

type RenderedChannel added in v0.8.0

type RenderedChannel struct {
	ID         string `json:"id"`
	Name       string `json:"name,omitempty"`
	Type       string `json:"type"`
	LastPostAt string `json:"last_post_at,omitempty"`
	Unread     int64  `json:"unread"`
	Mentions   int64  `json:"mentions"`
}

RenderedChannel is a channel with the caller's read state.

type RenderedThread added in v0.8.0

type RenderedThread struct {
	output.RenderedPost
	ReplyCount     int64    `json:"reply_count"`
	LastReplyAt    string   `json:"last_reply_at,omitempty"`
	UnreadReplies  int64    `json:"unread_replies"`
	UnreadMentions int64    `json:"unread_mentions"`
	Participants   []string `json:"participants,omitempty"`
}

RenderedThread is a followed thread: its root post plus reply state.

Jump to

Keyboard shortcuts

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