Skip to content

feat(interactive): add reflection-driven interactive prompt engine#249

Draft
ben-kalmus wants to merge 1 commit into
mainfrom
feat/interactive-package
Draft

feat(interactive): add reflection-driven interactive prompt engine#249
ben-kalmus wants to merge 1 commit into
mainfrom
feat/interactive-package

Conversation

@ben-kalmus

Copy link
Copy Markdown
Contributor

A generic package that builds a request body by walking any struct via reflection and prompting for each field through a small Prompter interface (survey-backed in production, a scripted fake for tests). Handles scalars, optional pointers, enums (validated through the SDK's own IsValid method), oneOf unions, parameter bags, slices and maps, with per-field input validation and re-prompt on invalid entries. No SDK or command coupling.

A generic package that builds a request body by walking any struct via
reflection and prompting for each field through a small Prompter interface
(survey-backed in production, a scripted fake for tests). Handles scalars,
optional pointers, enums (validated through the SDK's own IsValid method),
oneOf unions, parameter bags, slices and maps, with per-field input
validation and re-prompt on invalid entries. No SDK or command coupling.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 228 complexity · 9 duplication

Metric Results
Complexity 228
Duplication 9

View in Codacy

TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant