Skip to main content

Module interview

Module interview 

Source
Expand description

The interactive interview. Three questions max (design §5.1 step 2), producing an Intent. Bypassable when skillpack.toml already holds the answers.

For pure-library projects the third question becomes “what’s the import pattern?” instead of “what’s the exact command to run?” (design §5.1 “Pure-library path”).

All prompting goes through the Prompter trait so unit tests can inject a canned-answer stub instead of driving a real TTY.

Structs§

DialoguerPrompter
A dialoguer::Input-backed prompter. Constructed once per interview.

Traits§

Prompter
Abstraction over the prompt backend. The real implementation uses dialoguer; tests inject a deterministic stub.

Functions§

run
Run the interview and return an Intent, seeded from the profile’s introspection hints so the maintainer isn’t typing things we already know.