fix(cli): satisfy ruff encoding requirement in send_cmd

Specify utf-8 when reading message bodies from --file paths so the full-repo ruff enforcement check passes in CI.
This commit is contained in:
Brooklyn Nicholson 2026-05-16 22:55:42 -05:00
parent 290bf93104
commit 9b2d58159c

View file

@ -58,7 +58,7 @@ def _read_message_body(
if file_path == "-":
return sys.stdin.read()
try:
return Path(file_path).read_text()
return Path(file_path).read_text(encoding="utf-8")
except OSError as exc:
print(f"hermes send: cannot read {file_path}: {exc}", file=sys.stderr)
sys.exit(_USAGE_EXIT)