-
Notifications
You must be signed in to change notification settings - Fork 116
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 partition-table subcommand #172
Conversation
ccc107b
to
292238e
Compare
292238e
to
e66434e
Compare
#[clap(long, required_unless_present_any = ["info", "to-csv"])] | ||
to_binary: bool, | ||
/// Convert binary partition table to CSV representation | ||
#[clap(long, required_unless_present_any = ["info", "to-binary"])] | ||
to_csv: bool, | ||
/// Show information on partition table | ||
#[clap(short, long, required_unless_present_any = ["to-binary", "to-csv"])] | ||
info: bool, |
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.
it might make more sense to have these as sub commands
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 think it's fine as they terminate the chain of commands and I don't like too deeply nested subcommands.
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.
Thank you so much for this, sorry again for the delays!
Overall I think this looks quite good, I don't have much else to say about the submitted code which isn't nitpicking. There are a couple things I'd like to see added though, if you are willing; I can do it myself if you are not feeling up to it however, please just let me know.
- Could you please update the top-level README to include the new MSRV?
- You have updated
espflash/src/main.rs
, but notcargo-espflash/src/main.rs
; would it be possible for you to add this functionality tocargo-espflash
as well?
Cool, all done! |
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.
Awesome, thank you so much!
Fixes #165 and fixes #163. It's quite pretty too:
This is quite a bit more than I bargained for but I think this makes sense as parsing of the binary stuff is also in esp-idf's
gen_esp32part.py
and that's Python so we can't have that!I had to bump the MSRV to 1.58 but I hope that's ok.