Skip to content

[CLI] doctor: consider extensible check registry #178

@charlesgreen

Description

@charlesgreen

Follow-up from doctor command review.

runDoctorChecks hardcodes the check list. A registry pattern would let plugins / future subsystems (vector store, embeddings, telemetry exporters) register their own readiness probes without touching doctor.go.

Sketch

type doctorCheckFn func(ctx context.Context, opts doctorOpts) []doctorCheck
var doctorRegistry []doctorCheckFn
func RegisterDoctorCheck(fn doctorCheckFn) { doctorRegistry = append(doctorRegistry, fn) }

YAGNI for now — file so we revisit when the second subsystem wants to plug in.

File: cmd/aixgo/cmd/doctor.go:132.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions