graph

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cmd = NewCommand()

Cmd represents the graph command

Functions

func NewCommand

func NewCommand() *cobra.Command

NewCommand returns a new graph command instance.

func NewFormatter

func NewFormatter(format string) (formatters.Formatter, error)

NewFormatter creates a Formatter for the specified format type.

Types

type AbsolutePath

type AbsolutePath string

AbsolutePath is a normalized absolute filesystem path.

func (AbsolutePath) String

func (p AbsolutePath) String() string

type PathResolver

type PathResolver struct {
	// contains filtered or unexported fields
}

PathResolver resolves raw user paths relative to a configured base directory.

func NewPathResolver

func NewPathResolver(baseDir string, allowOutside bool) (PathResolver, error)

func (PathResolver) BaseDir

func (r PathResolver) BaseDir() string

func (PathResolver) Resolve

func (r PathResolver) Resolve(path RawPath) (AbsolutePath, error)

type RawPath

type RawPath string

RawPath is a user-provided file path from CLI flags.

Directories

Path Synopsis
dot

Jump to

Keyboard shortcuts

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