about summary refs log tree commit diff stats
path: root/pkgs/by-name/ba/back/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/ba/back/src/main.rs')
-rw-r--r--pkgs/by-name/ba/back/src/main.rs53
1 files changed, 0 insertions, 53 deletions
diff --git a/pkgs/by-name/ba/back/src/main.rs b/pkgs/by-name/ba/back/src/main.rs
deleted file mode 100644
index 61953c4..0000000
--- a/pkgs/by-name/ba/back/src/main.rs
+++ /dev/null
@@ -1,53 +0,0 @@
-// Back - An extremely simple git issue tracking system. Inspired by tvix's
-// panettone
-//
-// Copyright (C) 2024 Benedikt Peetz <benedikt.peetz@b-peetz.de>
-// SPDX-License-Identifier: AGPL-3.0-or-later
-//
-// This file is part of Back.
-//
-// You should have received a copy of the License along with this program.
-// If not, see <https://www.gnu.org/licenses/agpl.txt>.
-
-use std::{process, sync::Arc};
-
-use clap::Parser;
-
-use crate::config::BackConfig;
-
-mod cli;
-pub mod config;
-mod error;
-pub mod git_bug;
-mod web;
-
-fn main() -> Result<(), String> {
-    if let Err(err) = server_main() {
-        eprintln!("Error {err}");
-        process::exit(1);
-    } else {
-        Ok(())
-    }
-}
-
-#[tokio::main]
-async fn server_main() -> Result<(), error::Error> {
-    let args = cli::Cli::parse();
-
-    stderrlog::new()
-        .module(module_path!())
-        .modules(["hyper", "http"])
-        .quiet(false)
-        .show_module_names(false)
-        .color(stderrlog::ColorChoice::Auto)
-        .verbosity(2)
-        .timestamp(stderrlog::Timestamp::Off)
-        .init()
-        .expect("Let's just hope that this does not panic");
-
-    let config = BackConfig::from_config_file(&args.config_file)?;
-
-    web::main(Arc::new(config)).await?;
-
-    Ok(())
-}