inspector

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package inspector renders the resolved configuration state of a CONGA command chain: every flag and argument of every active command from root down to the leaf, with its resolved value and origin.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fprint

func Fprint(session *conga.Session, writer io.Writer, commands ...any)

Fprint renders the configuration of the provided commands to the given writer.

func Print

func Print(session *conga.Session, commands ...any)

Print renders the configuration of the provided commands to the session-configured stdout.

Types

type Row

type Row struct {
	DisplayName  string
	TypeName     string
	ValueStr     string
	Source       conga.ValueSource
	SourceDetail string
	IsSet        bool
	Kind         string // "flag", "arg", "dash", "raw", "subcmd", "builtin"
}

Row holds the extracted metadata for a single configuration field.

func Inspect

func Inspect(target any) []Row

Inspect extracts rows of configuration metadata from a target struct pointer.

Jump to

Keyboard shortcuts

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