-
Notifications
You must be signed in to change notification settings - Fork 37
Add options to list and get a detailed explanation of options #293
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: main
Are you sure you want to change the base?
Conversation
e9b35a4 to
bc1764b
Compare
| ## Available Options | ||
| - `unstable-hal`: Enables esp-hal features that may not be ready for general use yet. |
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 think we lost track of some of the options, and the list commands makes this list redundant also.
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.
Pull request overview
This PR introduces new subcommands to list and explain template options, addressing issue #287. It also embeds the generator parameters used in the generated code for future reference.
Changes:
- Added
esp-generate list-optionscommand to display all available template options grouped by category - Added
esp-generate explain <option>command to provide detailed information about a specific option - Embedded generator parameters as a comment in generated template files
- Updated README to reference new commands instead of maintaining a static list of options
- Removed unused
populate_toolchain_categoryfunction from toolchain module
Reviewed changes
Copilot reviewed 5 out of 8 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| template/src/bin/main.rs | Added comment placeholder for generator parameters in main entry point |
| template/src/bin/async_main.rs | Added comment placeholder for generator parameters in async entry point |
| src/toolchain.rs | Removed unused populate_toolchain_category function |
| src/main.rs | Implemented new subcommands, improved headless mode error messages, and added logic to embed parameters in generated code |
| README.md | Updated documentation to reference new subcommands instead of listing all options |
| Cargo.toml | Added indexmap dependency for ordered map operations |
| Cargo.lock | Updated with indexmap dependency |
| CHANGELOG.md | Documented new features |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
e7d32b6 to
781c1ce
Compare
SergioGasquez
left a comment
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.
LGTM! Just gave it a try and it looks like a good improvement to me! I would still wait for some more useful feedback before merging it
781c1ce to
de6c475
Compare
Closes #287 by introducing
esp-generate list-optionsandesp-generate explain <option>. These commands describe each option and their dependencies. The module and toolchain options are not included in this yet.