(args: HostNotifyArgs)
| 437 | } |
| 438 | |
| 439 | async fn cmd_notify_host(args: HostNotifyArgs) -> Result<()> { |
| 440 | let client = HostApi::load_or_default(args.url)?; |
| 441 | client.notify(&args.event, &args.payload).await?; |
| 442 | Ok(()) |
| 443 | } |
| 444 | |
| 445 | fn sha256(data: &[u8]) -> [u8; 32] { |
| 446 | use sha2::Digest; |