diff options
author | Runxi Yu <me@runxiyu.org> | 2025-05-11 17:07:48 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-05-11 17:08:01 +0800 |
commit | 9ddd2807a13eafbd967f421b0dc4aee55ff2ff6f (patch) | |
tree | cd2deafac1aea8787cb85ac9654ad375ef0fadc0 /forged/main.go | |
parent | Bump dependencies (diff) | |
download | forge-master.tar.gz forge-master.tar.zst forge-master.zip |
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.go | 27 |
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()) +} |