Posting now reads from stdin, supports multiline input

This commit is contained in:
2024-10-11 11:17:52 -04:00
parent 1ca8a9ce98
commit 8f5d7d6df2
2 changed files with 35 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ fn subcmd_post(cmd: *getopt::command) void = {
let message = strings::join(" ", cmd.args...);
defer free(message);
match (bulb::post(board, user_name, message)) {
match (bulb::post(os::stdin, board, user_name)) {
case let err: bulb::error =>
fmt::errorf("{}: Could not read {}: {}\n", name, board, bulb::strerror(err))!;
case void => void;