solution

package
v0.38.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidOutputTypes = []string{"json", "yaml", "table"}

Functions

func CommandSolution

func CommandSolution(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command

Types

type CmdOptionsVersion

type CmdOptionsVersion struct {
	IOStreams *terminal.IOStreams
	CliParams *settings.Run
	Output    string
	File      string
	NoCache   bool
	Local     bool
}

func (*CmdOptionsVersion) GetSolution

func (o *CmdOptionsVersion) GetSolution(ctx context.Context) error

func (*CmdOptionsVersion) GetSolutionWithGetter

func (o *CmdOptionsVersion) GetSolutionWithGetter(ctx context.Context, getter get.Interface) error

GetSolutionWithGetter retrieves a solution using the provided getter implementation. This method allows for dependency injection, making it easier to test with mock implementations. The getter parameter should implement the get.Interface.

func (*CmdOptionsVersion) ListSolutions added in v0.15.0

func (o *CmdOptionsVersion) ListSolutions(ctx context.Context) error

ListSolutions lists solutions from the local and configured catalogs.

type GetLatestVersionFunc

type GetLatestVersionFunc func(ctx context.Context) (string, error)

Jump to

Keyboard shortcuts

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