cli/scaffold_cli library

Classes

SlatePlan
The output of a planner: a deterministic description of what the CLI intends to do for the chosen backend/service.

Constants

androidRevenueCatKeyPrompt → const String
appleRevenueCatKeyPrompt → const String
laravelUrlPrompt → const String
supabaseAnonKeyPrompt → const String
supabaseUrlPrompt → const String
supportedAuthBackends → const List<String>
Backend choices presented to the user for dart run scaffold_ui:main auth.
supportedIapServices → const List<String>
Service choices presented to the user for dart run scaffold_ui:main iap.

Functions

iosSetupHintFor({required bool appleKeyProvided}) String
The post-install hint printed at the end of a RevenueCat run. Returns the empty string when no Apple key was provided (the user picked n), so the hint is silently omitted for Android-only setups. Pulled out of iap() so the conditional is testable.
parseCommand(List<String> args) String?
Validates the CLI invocation and returns the parsed command name (auth or iap). Returns null for any other shape — the caller is responsible for printing a usage hint and exiting with a non-zero status code.
planAuthSlate({required String backend, required Prompt prompt}) SlatePlan?
Builds the slate plan for an auth invocation. Pure: the only side effect is calling prompt (which the runtime backs with CliDialog.ask()).
planIapSlate({required String service, required Prompt prompt}) SlatePlan?
Builds the slate plan for an iap invocation. Mirrors planAuthSlate in shape; for RevenueCat the user can type n to skip a platform key, which is normalised to the empty string (the stub treats '' as "leave the configure line commented out with placeholder text").

Typedefs

Prompt = String Function(String question)
Callback used by the planners to read a single line of user input. The runtime wires this to a CliDialog text question; tests substitute a canned-answer recorder.