You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
788 B
36 lines
788 B
package main
|
|
|
|
import (
|
|
_ "embed"
|
|
"flag"
|
|
"github.com/cloudreve/Cloudreve/v4/cmd"
|
|
"github.com/cloudreve/Cloudreve/v4/pkg/util"
|
|
)
|
|
|
|
var (
|
|
isEject bool
|
|
confPath string
|
|
scriptName string
|
|
)
|
|
|
|
func init() {
|
|
flag.BoolVar(&util.UseWorkingDir, "use-working-dir", false, "Use working directory, instead of executable directory")
|
|
flag.StringVar(&confPath, "c", util.RelativePath("conf.ini"), "Path to the config file.")
|
|
flag.StringVar(&scriptName, "database-script", "", "Name of database util script.")
|
|
//flag.Parse()
|
|
|
|
//staticFS = bootstrap.NewFS(staticZip)
|
|
//bootstrap.Init(confPath, staticFS)
|
|
}
|
|
|
|
func main() {
|
|
cmd.Execute()
|
|
return
|
|
// 关闭数据库连接
|
|
|
|
//if scriptName != "" {
|
|
// // 开始运行助手数据库脚本
|
|
// bootstrap.RunScript(scriptName)
|
|
// return
|
|
//}
|
|
}
|