-
Notifications
You must be signed in to change notification settings - Fork 120
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
Conversation
espflash/src/bin/espflash.rs
Outdated
@@ -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)] |
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.
short
clashed with some other option's short-name
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! Is there any reason not to add this feature to cargo-espflash
too?
espflash/src/bin/espflash.rs
Outdated
@@ -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)] |
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 guess it clashed with flash_size
, maybe we could use another short instead of removing it
#[clap(long, global = true, action)] | |
#[clap(short = 'S', long, global = true, action)] |
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. |
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.
Thanks!
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)