MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / activeStep

Method activeStep

internal/cli/launch_wizard.go:223–236  ·  view source on GitHub ↗

activeStep returns the picker for the current phase, or nil when the wizard is done / in manual-entry mode.

()

Source from the content-addressed store, hash-verified

221// activeStep returns the picker for the current phase, or nil when
222// the wizard is done / in manual-entry mode.
223func (m *launchWizardModel) activeStep() *pickerStep {
224 switch m.phase {
225 case phasePickTool:
226 return &m.toolStep
227 case phasePickEndpoint:
228 return &m.endpointStep
229 case phasePickModel:
230 if m.manualEntry {
231 return nil
232 }
233 return &m.modelStep
234 }
235 return nil
236}
237
238// advanceToNextNeededPhase sets m.phase to the first phase that still
239// needs user input. Skipped phases are recorded in m.sel already.

Callers 2

UpdateMethod · 0.95
ViewMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected