forked from cloudreve/cloudreve
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
36 lines (30 loc) · 788 Bytes
/
main.go
File metadata and controls
36 lines (30 loc) · 788 Bytes
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
29
30
31
32
33
34
35
36
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
//}
}