Skip to content

Conversation

@bugadani
Copy link
Contributor

@bugadani bugadani commented Jan 15, 2026

Closes #287 by introducing esp-generate list-options and esp-generate explain <option>. These commands describe each option and their dependencies. The module and toolchain options are not included in this yet.

@bugadani bugadani force-pushed the accessibility branch 3 times, most recently from e9b35a4 to bc1764b Compare January 15, 2026 13:44
@bugadani bugadani marked this pull request as ready for review January 15, 2026 13:46
Copilot AI review requested due to automatic review settings January 15, 2026 13:46
## Available Options
- `unstable-hal`: Enables esp-hal features that may not be ready for general use yet.
Copy link
Contributor Author

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.

Copy link

Copilot AI left a 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-options command 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_category function 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.

@bugadani bugadani force-pushed the accessibility branch 3 times, most recently from e7d32b6 to 781c1ce Compare January 19, 2026 11:09
Copy link
Member

@SergioGasquez SergioGasquez left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve accessibility

3 participants