root

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

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

func Cmd() *cobra.Command

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

func Run(cmd *cobra.Command, format string, external bool, projType string) error

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.

Jump to

Keyboard shortcuts

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