35 lines
645 B
Go
35 lines
645 B
Go
// Copyright 2022 E99p1ant. All rights reserved.
|
|
// Use of this source code is governed by a MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/sirupsen/logrus"
|
|
"github.com/urfave/cli/v2"
|
|
|
|
"github.com/tamakyi/TamaBox/internal/cmd"
|
|
)
|
|
|
|
func main() {
|
|
app := cli.NewApp()
|
|
app.Name = "TamaBox"
|
|
app.Description = "Anonymous question box"
|
|
|
|
app.Commands = []*cli.Command{
|
|
cmd.Web,
|
|
cmd.Censor,
|
|
cmd.Uid,
|
|
cmd.Ban,
|
|
cmd.Restore,
|
|
cmd.Reports,
|
|
cmd.Restrict,
|
|
cmd.Unrestrict,
|
|
}
|
|
if err := app.Run(os.Args); err != nil {
|
|
logrus.WithError(err).Fatal("Failed to start application")
|
|
}
|
|
}
|