Fixed seek method of the read command
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user