mirror of
https://github.com/woodchen-ink/certimate.git
synced 2025-07-18 01:11:55 +08:00
chore: hide unused exec flags
This commit is contained in:
parent
2102e60c89
commit
eee8a38a71
@ -9,15 +9,21 @@ import (
|
||||
"github.com/pocketbase/pocketbase/core"
|
||||
)
|
||||
|
||||
var instance core.App
|
||||
|
||||
var intanceOnce sync.Once
|
||||
var (
|
||||
instance core.App
|
||||
intanceOnce sync.Once
|
||||
)
|
||||
|
||||
func GetApp() core.App {
|
||||
intanceOnce.Do(func() {
|
||||
instance = pocketbase.NewWithConfig(pocketbase.Config{
|
||||
pb := pocketbase.NewWithConfig(pocketbase.Config{
|
||||
HideStartBanner: true,
|
||||
})
|
||||
|
||||
pb.RootCmd.Flags().MarkHidden("encryptionEnv")
|
||||
pb.RootCmd.Flags().MarkHidden("queryTimeout")
|
||||
|
||||
instance = pb
|
||||
})
|
||||
|
||||
return instance
|
||||
|
Loading…
x
Reference in New Issue
Block a user