Documentation
¶
Overview ¶
Package cli wires together the CLI commands.
Index ¶
Constants ¶
View Source
const SchemaVersion = "1"
SchemaVersion is the stable JSON output schema version. Bump when the envelope shape changes in a backwards-incompatible way.
Variables ¶
View Source
var Version = "dev"
Version is set at build time via -ldflags; defaults to "dev" for local builds.
Functions ¶
Types ¶
type Envelope ¶ added in v1.4.10
type Envelope struct {
SchemaVersion string `json:"schema_version"`
Command string `json:"command"`
Query string `json:"query,omitempty"`
// Status is "ok" (results found), "empty" (no results, symbol/query valid),
// or "error" (hard failure — graph missing, parse error, etc.).
Status string `json:"status"`
Count int `json:"count,omitempty"`
Results interface{} `json:"results,omitempty"`
Error string `json:"error,omitempty"`
}
Envelope is the top-level JSON wrapper for all --json output. schema_version lets agents pin to a known schema and detect changes.
Click to show internal directories.
Click to hide internal directories.