webhook-catcher 0.3.0

A simple runner that waits for a webhook
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::PathBuf;

use clap::Parser;

#[derive(Parser, Debug)]
#[command(version, author, about)]
struct Args {
    #[arg(short, long)]
    cfg: PathBuf,
}

#[tokio::main]
async fn main() {
    let args = Args::parse();
    let content = tokio::fs::read_to_string(args.cfg).await.unwrap();
    let content = toml::from_str::<webhook_catcher::Config>(&content).unwrap();
    webhook_catcher::run_server(content).await;
}