Skip to content

A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.

TypeScript fluxerfluxerapp
568 B
Raw Blame
// SPDX-License-Identifier: AGPL-3.0-or-later

use clap::Parser;
use fluxer_push::{cli, 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 fluxer_common::healthcheck::run(
            "FLUXER_PUSH_SERVICE_HOST",
            "FLUXER_PUSH_SERVICE_PORT",
            args.mode.default_port(),
        )
        .await;
    }

    fluxer_svc::init_tracing();

    let cfg = cli::load_config(&args)?;
    run(cfg).await
}