Skip to content

Commit eee8a38

Browse files
committed
chore: hide unused exec flags
1 parent 2102e60 commit eee8a38

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

internal/app/app.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@ import (
99
"github.com/pocketbase/pocketbase/core"
1010
)
1111

12-
var instance core.App
13-
14-
var intanceOnce sync.Once
12+
var (
13+
instance core.App
14+
intanceOnce sync.Once
15+
)
1516

1617
func GetApp() core.App {
1718
intanceOnce.Do(func() {
18-
instance = pocketbase.NewWithConfig(pocketbase.Config{
19+
pb := pocketbase.NewWithConfig(pocketbase.Config{
1920
HideStartBanner: true,
2021
})
22+
23+
pb.RootCmd.Flags().MarkHidden("encryptionEnv")
24+
pb.RootCmd.Flags().MarkHidden("queryTimeout")
25+
26+
instance = pb
2127
})
2228

2329
return instance

main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ func main() {
6464

6565
app.OnTerminate().BindFunc(func(e *core.TerminateEvent) error {
6666
routes.Unregister()
67-
slog.Info("[CERTIMATE] Exit!")
6867
return e.Next()
6968
})
7069

0 commit comments

Comments
 (0)