-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use -o flag in recommended command #9229
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
base: master
Are you sure you want to change the base?
Conversation
Summary of ChangesHello @joehan, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request introduces a minor but significant improvement to the post-app creation workflow. By adding the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request improves the user experience by suggesting a more convenient command to get the app configuration file after creating an app. The change adds the -o
flag to automatically save the file. My review includes a suggestion to add a clarification for the user about where the file is saved to prevent potential confusion, as the default location might not be the correct one within their project structure.
logger.info(""); | ||
logger.info("You can run this command to print out your new app's Google Services config:"); | ||
logger.info(` firebase apps:sdkconfig ${appPlatform} ${appMetadata.appId}`); | ||
logger.info(` firebase apps:sdkconfig ${appPlatform} ${appMetadata.appId} -o`); |
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.
Using the -o
flag is a great UX improvement. However, it might be slightly misleading for users. The command will save the configuration file to the current working directory, which often isn't the correct location within a project (e.g., inside the app
directory for Android). A user might assume the setup is complete when it's not.
Additionally, the preceding log on line 44, "You can run this command to print out your new app's Google Services config:", is now inaccurate since the command writes to a file instead of printing to standard output.
To make this clearer, I suggest adding a note for the user. Since I can only suggest changes to this line, my suggestion adds another log statement. Ideally, line 44 should also be updated to reflect that the command downloads a file.
logger.info(` firebase apps:sdkconfig ${appPlatform} ${appMetadata.appId} -o`);
logger.info(" Note: This will download the config file to your current directory. You may need to move it to the correct location in your project.");
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.
I agree with this comment and just tested it out
Description
Tiny improvement - with this flag, we'll automatically write to the platform appropriate file for you.