Documentation
¶
Overview ¶
Package cli builds the wiki command tree on top of the wiki library.
Index ¶
Constants ¶
Variables ¶
var ( Version = "dev" Commit = "none" Date = "unknown" )
Build metadata, set via -ldflags at release time.
Functions ¶
Types ¶
type App ¶
type App struct {
Cfg wiki.Config
Cache *wiki.Cache
Out *render.Renderer
Limit int
// contains filtered or unexported fields
}
App carries the resolved configuration and shared clients for a command run.
type Format ¶
Format is an output encoding. It aliases kit's render.Format so the command code keeps reading naturally (app.Out.Format() == FormatJSON) while the actual rendering is the shared kit engine — the same one every tamnd/*-cli uses.
type Row ¶
Row is one output record: an ordered, curated column set (Cols/Vals) for the list, table, csv, tsv, and url views plus the full typed value for json, jsonl, raw, and template. It is kit's render.Record, so every row builder feeds straight into the shared renderer with no per-format code of our own.