solution

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 18 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
}

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.

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