Should openSeaChest be a single binary? #106
Replies: 2 comments 2 replies
-
Sometimes I do have some little problems like:
But for a single binary, why do we need the first argument for subtool? Could we directly have parameters for each feature as we just have for seperate tools? Otherwise, it may still confusing to choose between |
Beta Was this translation helpful? Give feedback.
-
Please consider using only lowercase letters in the binary name ( Regarding the poll, I don’t have enough practical experience with the openSeaChest tools to be able to vote. If all the tools share a significant number of options and operate in a similar way, then I’d say “yes”. |
Beta Was this translation helpful? Give feedback.
-
Today we have the tools broken out as separate binaries:
openSeaChest_Basics
openSeaChest_SMART
openSeaChest_Erase
openSeaChest_Format
openSeaChest_ZBD
openSeaChest_Firmware
openSeaChest_Info
openSeaChest_Configure
openSeaChest_GenericTests
openSeaChest_Logs
openSeaChest_NVMe
This can be changed to a single binary while maintaining all the current openSeaChest features.
There would be one tool:
openSeaChest
that takes a sub-tool name like this:openSeaChest smart -d <handle> --smartAttributes hybrid
openSeaChest info -d <handle> -i
openSeaChest scan -F <scanflags>
openSeaChest erase -d <handle> --performQuickestErase
openSeaChest configure -d all --writeCache disable
openSeaChest format -d <handle> --nvmFormat current --nvmFmtSecErase user
openSeaChest nvme ...
openSeaChest zbd ...
openSeaCHest logs -d all --farm
Basically, instead of a separate binary for each tool, the first argument to openSeaChest will select which subtool to use for an option you want to run. All the options present in the tools today would continue to be supported under the sub-tool name, similar to today's use.
This change would be significant which is why we would like some feedback before we pursue this further. There is not currently a timeline on this change or even a requirement to make this change, but it would be great to have some community feedback on this idea.
Possible pros:
Possible cons:
Please feel free to add comments to elaborate on other pros/cons or opinions on this. I will try to edit the pros/cons list above as these are added. This is purely an idea and question on what is preferred by users. Even if this poll shows favor towards a single binary, there is no guarantee it will be implemented.
I'm trying to weigh user feedback as I consider how to reorganize the utility code. The idea I currently have should work for single or multiple binaries without a problem.
11 votes ·
Beta Was this translation helpful? Give feedback.
All reactions