aboutsummaryrefslogtreecommitdiff
path: root/forged/main.go
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-05-11 17:07:48 +0800
committerRunxi Yu <me@runxiyu.org>2025-05-11 17:08:01 +0800
commit9ddd2807a13eafbd967f421b0dc4aee55ff2ff6f (patch)
treecd2deafac1aea8787cb85ac9654ad375ef0fadc0 /forged/main.go
parentBump dependencies (diff)
downloadforge-master.tar.gz
forge-master.tar.zst
forge-master.zip
forged/cmd/forge -> forgedHEADv0.1.46master
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.
Diffstat (limited to 'forged/main.go')
-rw-r--r--forged/main.go27
1 files changed, 27 insertions, 0 deletions
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 <https://runxiyu.org>
+
+// 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())
+}