-
Notifications
You must be signed in to change notification settings - Fork 950
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reorder firebase init dataconnect
prompts for better local onboarding flow.
#7733
Conversation
firebase init dataconnect
prompts for better local onboarding flow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small type nits but lgtm otherwise
}), | ||
); | ||
if (existingServicesAndSchemas.length) { | ||
const choices: { name: string; value: any }[] = existingServicesAndSchemas.map((s) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit:
const choices: { name: string; value: any }[] = existingServicesAndSchemas.map((s) => { | |
const choices: { name: string; value: { schema: Schema, service: Service } | undefined }[] = existingServicesAndSchemas.map((s) => { |
}; | ||
}); | ||
choices.push({ name: "Create a new service", value: undefined }); | ||
const choice: { service: Service; schema: Schema } = await promptOnce({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you set it above, you can remove this type declaration here because promptOnce will return a defined type.
Description
Scenarios Tested
Sample Commands
project with billing with existing services:
project with billing with no services, (n) for configuring backend resources: