options

package
v0.0.0-...-732dc05 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliOptions

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

func NewCliOptions

func NewCliOptions(useCase usecase.UseCase, version string) *CliOptions

func (*CliOptions) AppConfig

func (opts *CliOptions) AppConfig() *models.AppConfig

func (*CliOptions) CPUProfile

func (opts *CliOptions) CPUProfile() string

func (*CliOptions) DebugMode

func (opts *CliOptions) DebugMode() bool

func (*CliOptions) In

func (opts *CliOptions) In() *streams.In

func (*CliOptions) MemoryProfile

func (opts *CliOptions) MemoryProfile() string

func (*CliOptions) OpenAI

func (opts *CliOptions) OpenAI() openai.Service

func (*CliOptions) Out

func (opts *CliOptions) Out() *streams.Out

func (*CliOptions) Renderer

func (opts *CliOptions) Renderer() render.Renderer

func (*CliOptions) SDVGOpts

func (opts *CliOptions) SDVGOpts() *SDVGOptions

func (*CliOptions) SetAppConfig

func (opts *CliOptions) SetAppConfig(appConfig *models.AppConfig)

func (*CliOptions) SetCPUProfile

func (opts *CliOptions) SetCPUProfile(profile string)

func (*CliOptions) SetDebugMode

func (opts *CliOptions) SetDebugMode(debugMode bool)

func (*CliOptions) SetIn

func (opts *CliOptions) SetIn(in *streams.In)

func (*CliOptions) SetMemoryProfile

func (opts *CliOptions) SetMemoryProfile(profile string)

func (*CliOptions) SetOpenAI

func (opts *CliOptions) SetOpenAI(openAI openai.Service)

func (*CliOptions) SetOut

func (opts *CliOptions) SetOut(out *streams.Out)

func (*CliOptions) SetRenderer

func (opts *CliOptions) SetRenderer(renderer render.Renderer)

func (*CliOptions) SetSDVGOpts

func (opts *CliOptions) SetSDVGOpts(sdvgOpts *SDVGOptions)

func (*CliOptions) SetUseCase

func (opts *CliOptions) SetUseCase(useCase usecase.UseCase)

func (*CliOptions) SetUseTTY

func (opts *CliOptions) SetUseTTY(useTTY bool)

func (*CliOptions) SetVersion

func (opts *CliOptions) SetVersion(version string)

func (*CliOptions) UseCase

func (opts *CliOptions) UseCase() usecase.UseCase

func (*CliOptions) UseTTY

func (opts *CliOptions) UseTTY() bool

func (*CliOptions) Version

func (opts *CliOptions) Version() string

type Option

type Option[T any] struct {
	Value   T
	Changed *bool
}

Option type is a value wrapper with a flag indicating whether its value has been modified.

type SDVGOptions

type SDVGOptions struct {
	TTY           Option[bool]
	NoTTY         Option[bool]
	ConfigPath    string
	DebugMode     bool
	CPUProfile    string
	MemoryProfile string
	OpenAIAPIKey  string
	OpenAIBaseURL string
	OpenAIModel   string
}

SDVGOptions type is used to describe root command options.

Jump to

Keyboard shortcuts

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