From 9ddd2807a13eafbd967f421b0dc4aee55ff2ff6f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 11 May 2025 17:07:48 +0800 Subject: forged/cmd/forge -> forged We're already separating everything related to the main forge daemon in forged/ so the cmd structure is just a bit redundant at this point. --- forged/main.go | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 forged/main.go (limited to 'forged/main.go') diff --git a/forged/main.go b/forged/main.go new file mode 100644 index 0000000..fde15d1 --- /dev/null +++ b/forged/main.go @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu + +// The main entry point to the Lindenii Forge daemon. +package main + +import ( + "flag" + + "go.lindenii.runxiyu.org/forge/forged/internal/unsorted" +) + +func main() { + configPath := flag.String( + "config", + "/etc/lindenii/forge.scfg", + "path to configuration file", + ) + flag.Parse() + + s, err := unsorted.NewServer(*configPath) + if err != nil { + panic(err) + } + + panic(s.Run()) +} -- cgit v1.2.3