inspect

package
v0.37.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandInspect

func CommandInspect(cliParams *settings.Run, ioStreams *terminal.IOStreams, binaryName string) *cobra.Command

CommandInspect creates the top-level 'inspect' command group.

func CommandInspectSolution

func CommandInspectSolution(cliParams *settings.Run, ioStreams *terminal.IOStreams, binaryName string) *cobra.Command

CommandInspectSolution creates the 'inspect solution' subcommand.

Types

type Result

type Result struct {
	Name         string `json:"name" yaml:"name"`
	DisplayName  string `json:"displayName,omitempty" yaml:"displayName,omitempty"`
	Version      string `json:"version" yaml:"version"`
	Description  string `json:"description,omitempty" yaml:"description,omitempty"`
	Category     string `json:"category,omitempty" yaml:"category,omitempty"`
	Path         string `json:"path,omitempty" yaml:"path,omitempty"`
	HasWorkflow  bool   `json:"hasWorkflow" yaml:"hasWorkflow"`
	HasResolvers bool   `json:"hasResolvers" yaml:"hasResolvers"`

	RunCommand string `json:"runCommand,omitempty" yaml:"runCommand,omitempty"`

	Resolvers []inspect.ResolverInfo `json:"resolvers,omitempty" yaml:"resolvers,omitempty"`
	Actions   []inspect.ActionInfo   `json:"actions,omitempty" yaml:"actions,omitempty"`
	Finally   []inspect.ActionInfo   `json:"finally,omitempty" yaml:"finally,omitempty"`

	Parameters []inspect.ParamInfo `json:"parameters,omitempty" yaml:"parameters,omitempty"`

	Tags             []string                     `json:"tags,omitempty" yaml:"tags,omitempty"`
	Links            []inspect.LinkInfo           `json:"links,omitempty" yaml:"links,omitempty"`
	Maintainers      []inspect.MaintainerInfo     `json:"maintainers,omitempty" yaml:"maintainers,omitempty"`
	FileDependencies []inspect.FileDependencyInfo `json:"fileDependencies,omitempty" yaml:"fileDependencies,omitempty"`

	Catalog *inspect.CatalogInfo `json:"catalog,omitempty" yaml:"catalog,omitempty"`
}

Result is the structured output for inspect solution.

type SolutionOptions

type SolutionOptions struct {
	IOStreams  *terminal.IOStreams
	CliParams  *settings.Run
	BinaryName string
	File       string

	// Usage switches to the user-facing "how do I run this" projection.
	Usage bool

	// kvx output integration
	flags.KvxOutputFlags
}

SolutionOptions holds options for the inspect solution command.

func (*SolutionOptions) Run

func (o *SolutionOptions) Run(ctx context.Context) error

Run executes the inspect solution command.

Jump to

Keyboard shortcuts

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