Documentation
¶
Overview ¶
Package cmd implements the dfetch command-line interface (cobra): the root command and the query, run, queries, tables, and version subcommands. main calls Execute; each subcommand loads the config, builds the engine, and renders the result.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
Execute runs the root command inside a root `cli.<command>` span, so every subcommand — not just query, whose engine.Run starts its own child span — produces one trace per invocation; engine, connector, and SQLite spans nest under it via cmd.Context(). The span is against the no-op tracer unless an OTLP endpoint is configured (see internal/telemetry), so untraced runs pay nothing. Cancelling ctx (e.g. on Ctrl-C) propagates to every subcommand's cmd.Context(), aborting in-flight connector scans.
func SetVersion ¶
func SetVersion(v string)
SetVersion sets the version string reported by `dfetch version` and the cobra-provided `dfetch --version` flag.
Types ¶
This section is empty.