adjust code to new repository

This commit is contained in:
T. R. Bernstein
2025-10-09 21:02:10 +02:00
committed by T. R. Bernstein
parent 0cf34c475b
commit 795cd8335f
335 changed files with 803 additions and 802 deletions

View File

@@ -10,15 +10,15 @@ import (
"time"
"github.com/fatih/color"
"github.com/pocketbase/pocketbase/cmd"
"github.com/pocketbase/pocketbase/core"
"github.com/pocketbase/pocketbase/tools/hook"
"github.com/pocketbase/pocketbase/tools/list"
"github.com/pocketbase/pocketbase/tools/osutils"
"github.com/pocketbase/pocketbase/tools/routine"
"github.com/tabshift-gh/pocketbase/cmd"
"github.com/tabshift-gh/pocketbase/core"
"github.com/tabshift-gh/pocketbase/tools/hook"
"github.com/tabshift-gh/pocketbase/tools/list"
"github.com/tabshift-gh/pocketbase/tools/osutils"
"github.com/tabshift-gh/pocketbase/tools/routine"
"github.com/spf13/cobra"
_ "github.com/pocketbase/pocketbase/migrations"
_ "github.com/tabshift-gh/pocketbase/migrations"
)
var _ core.App = (*PocketBase)(nil)
@@ -140,7 +140,7 @@ func NewWithConfig(config Config) *PocketBase {
// hide the default help command (allow only `--help` flag)
pb.RootCmd.SetHelpCommand(&cobra.Command{Hidden: true})
// https://github.com/pocketbase/pocketbase/issues/6136
// https://github.com/tabshift-gh/pocketbase/issues/6136
pb.OnBootstrap().Bind(&hook.Handler[*core.BootstrapEvent]{
Id: ModerncDepsCheckHookId,
Func: func(be *core.BootstrapEvent) error {
@@ -254,8 +254,8 @@ func (pb *PocketBase) eagerParseFlags(config *Config) error {
// - is the default help command
// - is the default version command
//
// https://github.com/pocketbase/pocketbase/issues/404
// https://github.com/pocketbase/pocketbase/discussions/1267
// https://github.com/tabshift-gh/pocketbase/issues/404
// https://github.com/tabshift-gh/pocketbase/discussions/1267
func (pb *PocketBase) skipBootstrap() bool {
flags := []string{
"-h",