mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 21:15:32 +09:00
18 lines
439 B
Rust
18 lines
439 B
Rust
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
use clap::Parser;
|
|
use fluxer_push::{cli, healthcheck, run};
|
|
|
|
#[tokio::main(flavor = "multi_thread")]
|
|
async fn main() -> anyhow::Result<()> {
|
|
let args = cli::Args::parse();
|
|
if matches!(args.command, Some(cli::Command::Healthcheck)) {
|
|
return healthcheck::run(args.mode).await;
|
|
}
|
|
|
|
fluxer_svc::init_tracing();
|
|
|
|
let cfg = cli::load_config(&args)?;
|
|
run(cfg).await
|
|
}
|