MCPcopy Create free account
hub / github.com/compozy/agh / newInstallWizardModel

Function newInstallWizardModel

internal/cli/install.go:327–347  ·  view source on GitHub ↗
(input installWizardInput)

Source from the content-addressed store, hash-verified

325}
326
327func newInstallWizardModel(input installWizardInput) *installWizardModel {
328 modelInput := textinput.New()
329 modelInput.Prompt = "model> "
330 modelInput.Placeholder = "default model"
331 modelInput.Focus()
332
333 selected := 0
334 for i, provider := range input.Providers {
335 if provider == input.SelectedProvider {
336 selected = i
337 break
338 }
339 }
340
341 return &installWizardModel{
342 input: input,
343 step: installWizardStepProvider,
344 selected: selected,
345 modelInput: modelInput,
346 }
347}
348
349func (m *installWizardModel) Init() tea.Cmd {
350 return textinput.Blink

Callers 2

runInstallWizardFunction · 0.85

Calls

no outgoing calls

Tested by 1