-
Notifications
You must be signed in to change notification settings - Fork 232
src/main: add '--list' option to write-slot command #1717
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1717 +/- ##
=======================================
Coverage 84.50% 84.51%
=======================================
Files 76 76
Lines 22380 22390 +10
=======================================
+ Hits 18912 18922 +10
Misses 3468 3468
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
.TP | ||
\fB\-C\fR, \fB\-\-list\fR | ||
list available slots and exit. | ||
|
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 find options which completely replace a command's behavior confusing.
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.
like --help
?
I thought explicitly noting this in the help text might make it clear, though.
You'd prefer write-image list
? Or a separate command? A separate command would render the idea behind this useless I guess.
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.
rauc status
already lists the available slots. If that is confusing, we should improve it instead of adding something to write-slot
.
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.
For rauc being compiled with service support (which is the default), rauc status
requires the service to run, which write-slot
doesn't. For use as a standalone tool, which is more or less the intention of write-slot
, I still find it useful to have a built-in way to list the slots. Not necessarily a --list
option if this is too controversial.
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.
Perhaps a rauc config
command?
This should make it more convenient to use write-slot since it does not require navigating through the more complex 'rauc status' output or looking into the system.conf. Signed-off-by: Enrico Jörns <ejo@pengutronix.de>
This should make it more convenient to use
write-slot
since it does not require navigating through the more complexrauc status
output or looking into thesystem.conf
.