Skip to content

Commit

Permalink
fix: change catalague listing in stdout instead of stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerome Le Saux committed Apr 11, 2024
1 parent fbd8ee7 commit b3b2e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,9 @@ func listDsk(d dsk.DSK, dskPath string) (onError bool, message, hint string) {
size := fmt.Sprintf("%.3d ko", d.GetFilesize(d.Catalogue[i]))
totalUsed += d.GetFilesize(d.Catalogue[i])
filename := fmt.Sprintf("%s.%s", d.Catalogue[i].Nom, d.Catalogue[i].Ext)
fmt.Fprintf(os.Stderr, "[%.2d] : %s : %d %s\n", i, filename, int(d.Catalogue[i].User), size)
fmt.Fprintf(os.Stdout, "[%.2d] : %s : %d %s\n", i, filename, int(d.Catalogue[i].User), size)
}
fmt.Fprintf(os.Stderr, "Dsk %.3d Ko used\n", totalUsed)
fmt.Fprintf(os.Stdout, "Dsk %.3d Ko used\n", totalUsed)
return false, "", ""
}

Expand Down

0 comments on commit b3b2e8b

Please sign in to comment.