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

pio exec: Run custom toolchain commands #4163

Closed
mamins1376 opened this issue Jan 31, 2022 · 2 comments
Closed

pio exec: Run custom toolchain commands #4163

mamins1376 opened this issue Jan 31, 2022 · 2 comments
Assignees
Labels
Milestone

Comments

@mamins1376
Copy link

Feature Request: Support pio exec command, which is useful to run binaries associated with the current project, without getting involved with including toolchain directories in $PATH for each project.

As an example, for stm8 platform, there are sdcc, stm8flash and stm8-binutils which is a powerful combination. Problem is, without adding their relevant prefixes in the path, one is going to have a painful experience. Either they can include them in the shell (possibly automating this by sourcing a script), or call them by their path. Both have their flaws: inclusion is prone to versioning mismatch and loss of cross platform compatibility, while the second one is tedious and repetitive.

My proposal is to add support for pio exec cmd --arg (sub)command, which is just a shortcut for PATH=~/.platformio/...:$PATH cmd --arg at it's core.

@ivankravets ivankravets self-assigned this Jan 31, 2022
@ivankravets ivankravets added this to the 5.3.0 milestone Jan 31, 2022
@ivankravets
Copy link
Member

Thanks for filing this feature request. We have recently discussed it with @vshymanskyy and it would be great to have this functionality.

@ivankravets ivankravets modified the milestones: 5.3.0, 5.2.5 Feb 3, 2022
@ivankravets
Copy link
Member

ivankravets commented Feb 4, 2022

See docs https://docs.platformio.org/en/latest/core/userguide/pkg/cmd_exec.html

@mamins1376 , @vshymanskyy , please re-test with pio upgrade --dev.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants