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"
|
"github.com/pocketbase/pocketbase/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
var instance core.App
|
var (
|
||||||
|
instance core.App
|
||||||
var intanceOnce sync.Once
|
intanceOnce sync.Once
|
||||||
|
)
|
||||||
|
|
||||||
func GetApp() core.App {
|
func GetApp() core.App {
|
||||||
intanceOnce.Do(func() {
|
intanceOnce.Do(func() {
|
||||||
instance = pocketbase.NewWithConfig(pocketbase.Config{
|
pb := pocketbase.NewWithConfig(pocketbase.Config{
|
||||||
HideStartBanner: true,
|
HideStartBanner: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
pb.RootCmd.Flags().MarkHidden("encryptionEnv")
|
||||||
|
pb.RootCmd.Flags().MarkHidden("queryTimeout")
|
||||||
|
|
||||||
|
instance = pb
|
||||||
})
|
})
|
||||||
|
|
||||||
return instance
|
return instance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user