Documentation
¶
Overview ¶
Package graphcmd implements the "graph" CLI command, which renders the issue hierarchy and relationships as a Graphviz DOT file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmd ¶
NewCmd constructs the "graph" command, which renders issue relationships in one of several output formats (dot, json, text).
func RenderGraphDOT ¶
RenderGraphDOT generates a Graphviz DOT string from the given nodes and edges. Nodes are color-coded by state. Parent–child hierarchy is represented with solid edges, blocked_by with dashed red edges, and refs with dotted gray edges. Children are clustered under their parent epic using subgraphs.
func RenderGraphJSON ¶
RenderGraphJSON converts a set of nodes and edges into a JSON string representing a nested graph structure. Root issues (those with no parent) appear at the top level; children are recursively nested under their parent. Edges are distributed to both endpoints: a blocked_by edge from A→B appears as blocked_by on A and blocks on B. Refs edges are symmetric and appear on both endpoints.
Types ¶
type Format ¶
type Format string
Format identifies the output format for the graph command.
func ParseFormat ¶
ParseFormat converts a user-provided string into a Format constant. Returns an error for unrecognized values.