diff options
Diffstat (limited to 'cmd/root.go')
| -rw-r--r-- | cmd/root.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/root.go b/cmd/root.go index b8ab9e4..cc74436 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -4,6 +4,7 @@ import ( "fmt" "os" + "git.db.org.ai/dborg/internal/utils" "github.com/spf13/cobra" ) @@ -11,6 +12,9 @@ var rootCmd = &cobra.Command{ Use: "dborg", Short: "DB.org.ai CLI client", Long: `Query db.org.ai API`, + PersistentPreRunE: func(cmd *cobra.Command, args []string) error { + return utils.CheckForUpdates(cmd) + }, } func Execute() { |
