Showing info for Source if no disks were recognized.

This commit is contained in:
Rob Greene
2025-09-06 13:51:47 -05:00
parent 4696fe1817
commit 4ddefa8184

View File

@@ -43,6 +43,9 @@ public class InfoCommand extends ReadOnlyDiskContextCommandOptions {
public int handleCommand() throws Exception {
LOG.info(() -> "Path: " + context().source.getName());
if (selectedDisks().isEmpty()) {
for (Information info : context().source.information()) {
System.out.printf("%s: %s\n", info.label(), info.value());
}
List<TrackSectorDevice> devices = context().trackSectorDevice()
.include13Sector()
.include16Sector(Hint.DOS_SECTOR_ORDER)