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

Add external processor support #705

Merged
merged 4 commits into from
Nov 26, 2024
Merged

Conversation

bjoernQ
Copy link
Contributor

@bjoernQ bjoernQ commented Nov 26, 2024

This adds an option --processors which enables external executables to pre-process data received from the target in monitoring mode.

I have a couple of things in mind I want to build upon this since adding those functionalities to espflash itself would be problematic (in terms of growing code size, maintainability, and additional dependencies)

@@ -30,7 +30,7 @@ pub struct Cli {
subcommand: Commands,

/// Do not check for updates
#[clap(short, long, global = true, action)]
#[clap(long, global = true, action)]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

short clashed with some other option's short-name

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! Is there any reason not to add this feature to cargo-espflash too?

@@ -30,7 +30,7 @@ pub struct Cli {
subcommand: Commands,

/// Do not check for updates
#[clap(short, long, global = true, action)]
#[clap(long, global = true, action)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it clashed with flash_size, maybe we could use another short instead of removing it

Suggested change
#[clap(long, global = true, action)]
#[clap(short = 'S', long, global = true, action)]

@bjoernQ
Copy link
Contributor Author

bjoernQ commented Nov 26, 2024

LGTM! Is there any reason not to add this feature to cargo-espflash too?

No real reason other than I never used it - can add it

@SergioGasquez
Copy link
Member

No real reason other than I never used it - can add it

I think it would be good to add it to maintain feature parity as long as we can.

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.

Thanks!

@SergioGasquez SergioGasquez added this pull request to the merge queue Nov 26, 2024
Merged via the queue into esp-rs:main with commit 4f8a526 Nov 26, 2024
28 checks passed
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.

2 participants