Documentation
¶
Overview ¶
Package output renders command results. Default is compact JSON (machine friendly, since the primary consumer is an automated agent); --pretty emits indented JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RenderedFile ¶ added in v0.6.0
type RenderedFile struct {
ID string `json:"id"`
Name string `json:"name"`
Mime string `json:"mime,omitempty"`
Size int64 `json:"size"`
}
RenderedFile is an attachment as emitted with a post.
type RenderedPost ¶
type RenderedPost struct {
ID string `json:"id"`
Time string `json:"time"`
User string `json:"user"`
ChannelID string `json:"channel_id"`
Channel string `json:"channel,omitempty"`
RootID string `json:"root_id,omitempty"`
Message string `json:"message"`
Files []RenderedFile `json:"files,omitempty"`
}
RenderedPost is the flattened, enriched shape we emit for posts: human time and resolved username/channel instead of raw epoch/IDs.