Fixed seek method of the read command

This commit is contained in:
2024-10-09 22:27:46 -04:00
parent a2543ef78e
commit 61f85cfdda
2 changed files with 18 additions and 11 deletions

View File

@@ -85,7 +85,7 @@ fn subcmd_read(cmd: *getopt::command) (void | errors::invalid) = {
};
};
match (bulb::read(board, number)) {
match (bulb::read(os::stdout, board, number)) {
case let err: bulb::error =>
fmt::errorf("{}: Could not read {}: {}\n", name, board, bulb::strerror(err))!;
case void => void;
@@ -93,7 +93,7 @@ fn subcmd_read(cmd: *getopt::command) (void | errors::invalid) = {
};
fn subcmd_ls(cmd: *getopt::command) void = {
match (bulb::list()) {
match (bulb::list(os::stdout)) {
case let err: bulb::error =>
fmt::errorf("{}: Could not list boards: {}\n", name, bulb::strerror(err))!;
case void => void;