viz

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package viz renders task dependency graphs in multiple formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderASCII

func RenderASCII(plan *pm.Plan, useColor bool) string

RenderASCII renders an ASCII dependency graph with box-drawing characters. Color is enabled when useColor is true.

func RenderASCIIHighlighted

func RenderASCIIHighlighted(plan *pm.Plan, highlightID int, useColor bool) string

RenderASCIIHighlighted renders the ASCII graph with the selected task and its full dependency cone (the task itself plus all transitive dependencies) rendered in a distinct bright-magenta colour. Tasks outside the cone are dimmed. Pass highlightID <= 0 to disable highlighting (identical to RenderASCII).

func RenderDOT

func RenderDOT(plan *pm.Plan) string

RenderDOT renders the dependency graph in Graphviz DOT format.

func RenderMermaid

func RenderMermaid(plan *pm.Plan) string

RenderMermaid renders the dependency graph in Mermaid flowchart format.

func RunLive

func RunLive(workDir string) error

RunLive starts the bubbletea live animated execution graph.

Types

type Format

type Format string

Format is the output format for the dependency graph.

const (
	FormatASCII   Format = "ascii"
	FormatMermaid Format = "mermaid"
	FormatDOT     Format = "dot"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL