Documentation
¶
Overview ¶
Package cli builds the baidu command tree on top of the baidu library and the any-cli/kit framework. The lookup commands are declared once as kit operations in the baidu package, so the CLI, the HTTP API (baidu serve), and the MCP server (baidu mcp) all derive from one registry. The mirror subsystem is wired here as escape-hatch commands, since a stateful crawl does not fit the emit-records shape of an operation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" Commit = "none" Date = "unknown" )
Build metadata, set via -ldflags at release time.
Functions ¶
Types ¶
type JobRow ¶ added in v0.2.0
type JobRow struct {
ID int64 `json:"id"`
Kind string `json:"kind"`
Status string `json:"status"`
Detail string `json:"detail,omitempty"`
Processed int `json:"processed"`
Errors int `json:"errors"`
}
JobRow is the rendered shape of a job-log row.
type QueueRow ¶ added in v0.2.0
type QueueRow struct {
ID int64 `json:"id"`
EntityType string `json:"entity_type"`
Ref string `json:"ref"`
Status string `json:"status"`
Attempts int `json:"attempts"`
Priority int `json:"priority"`
Error string `json:"error,omitempty" table:",truncate"`
}
QueueRow is the rendered shape of a queue row.
Click to show internal directories.
Click to hide internal directories.