aboutsummaryrefslogtreecommitdiff
path: root/forged/main.go
blob: e9609f327f6e1ace508b36d19c052cb636bfb983 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

// 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 (
	"context"
	"flag"

	"go.lindenii.runxiyu.org/forge/forged/internal/server"
)

func main() {
	configPath := flag.String(
		"config",
		"/etc/lindenii/forge.scfg",
		"path to configuration file",
	)
	flag.Parse()

	s, err := server.New(context.Background(), *configPath)
	if err != nil {
		panic(err)
	}

	panic(s.Run())
}