Files
leonpan/main.go

37 lines
788 B
Go
Raw Normal View History

2019-11-04 20:30:12 +08:00
package main
2019-11-05 12:31:22 +08:00
import (
_ "embed"
2020-03-09 16:53:01 +08:00
"flag"
"github.com/cloudreve/Cloudreve/v4/cmd"
"github.com/cloudreve/Cloudreve/v4/pkg/util"
2019-11-05 12:31:22 +08:00
)
2019-11-04 20:30:12 +08:00
2020-05-23 13:57:02 +08:00
var (
isEject bool
confPath string
scriptName string
2020-05-23 13:57:02 +08:00
)
2020-03-09 16:53:01 +08:00
2019-11-07 15:56:05 +08:00
func init() {
flag.BoolVar(&util.UseWorkingDir, "use-working-dir", false, "Use working directory, instead of executable directory")
2022-10-08 18:51:52 +08:00
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)
2019-11-07 15:56:05 +08:00
}
2019-11-04 20:30:12 +08:00
func main() {
cmd.Execute()
return
2022-08-22 19:49:19 +08:00
// 关闭数据库连接
//if scriptName != "" {
// // 开始运行助手数据库脚本
// bootstrap.RunScript(scriptName)
// return
//}
}