aboutsummaryrefslogtreecommitdiff
path: root/forged/cmd/forge/main.go
blob: 87857515b008091dc88c2178556ed14f8543d6ba (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

// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-FileCopyrightText: Copyright (c) 2025 Runxi Yu <https://runxiyu.org>

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())
}