Skip to content

Commit

Permalink
updated ui deps and skip creating pb_data on --version or --help exec…
Browse files Browse the repository at this point in the history
…ution
  • Loading branch information
ganigeorgiev committed Sep 9, 2022
1 parent 96d09a3 commit 4a6bc45
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 17 deletions.
14 changes: 11 additions & 3 deletions pocketbase.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ func New() *PocketBase {
pb.debugFlag,
)}

// hide the default help command (allow only `--help` flag)
pb.RootCmd.SetHelpCommand(&cobra.Command{Hidden: true})

// hook the bootstrap process
pb.RootCmd.PersistentPreRunE = func(cmd *cobra.Command, args []string) error {
return pb.Bootstrap()
}

return pb
}

Expand Down Expand Up @@ -143,9 +151,9 @@ func (pb *PocketBase) Start() error {
// This method differs from pb.Start() by not registering the default
// system commands!
func (pb *PocketBase) Execute() error {
if err := pb.Bootstrap(); err != nil {
return err
}
// if err := pb.Bootstrap(); err != nil {
// return err
// }

var wg sync.WaitGroup

Expand Down
2 changes: 1 addition & 1 deletion ui/.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ PB_PROFILE_COLLECTION = "profiles"
PB_INSTALLER_PARAM = "installer"
PB_RULES_SYNTAX_DOCS = "https://pocketbase.io/docs/manage-collections#rules-filters-syntax"
PB_RELEASES = "https://github.com/pocketbase/pocketbase/releases"
PB_VERSION = "v0.7.0"
PB_VERSION = "v0.7.2"

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4a6bc45

Please sign in to comment.