Documentation
¶
Overview ¶
Package root implements the ctx dep command.
It shows the package dependency graph for the current project in Mermaid, table, or JSON format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cmd ¶
Cmd returns the dep command.
Flags:
- --format: Output format (mermaid, table, json)
- --external: Include external module dependencies
- --type: Force project type override
Returns:
- *cobra.Command: Configured deps command with flags registered
func Run ¶
Run executes the deps command logic.
Parameters:
- cmd: Cobra command for output stream
- format: Output format (config.FormatMermaid, config.FormatTable, or config.FormatJSON)
- external: If true, include external module dependencies
- projType: Force project type override; empty for auto-detect
Returns:
- error: Non-nil if format is invalid, project type unknown, or graph building fails
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.