Skip to content
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

Attempt to read espflash config from project_dir/.config/espflash.toml #469

Closed
svenstaro opened this issue Aug 27, 2023 · 2 comments · Fixed by #551
Closed

Attempt to read espflash config from project_dir/.config/espflash.toml #469

svenstaro opened this issue Aug 27, 2023 · 2 comments · Fixed by #551
Labels
enhancement New feature or request

Comments

@svenstaro
Copy link
Contributor

The config is currently only read system-wide ($HOME/.config/espflash/espflash.toml) but this is annoying if you work on multiple unrelated projects. I think cargo-espflash should first attempt to read project_dir/.config/espflash.toml and fall back to the system config if the former config doesn't exist.

@galah92
Copy link

galah92 commented Oct 17, 2023

Would also like a way to have a local config file (that take precedence over the global one). That would help multiple developers working on the same project were each has it's own serial mapping.
If there's another way to achieve that, I'll be happy to hear about it.
Also, our team mostly use the Cargo Runner (.cargo/config.toml), to run espflash, so ideally it would be a solution that supports this.

@SergioGasquez
Copy link
Member

Soon, we will start working towards espflash 3.0 where we will evaluate the different configuration options, at the moment we have several ways (files, env variables…) and this might change in the future, thanks for the suggestion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants