mirror of
https://github.com/turbot/steampipe.git
synced 2026-02-15 22:00:10 -05:00
Update check runs with every execution. Update fdw version #304
This commit is contained in:
@@ -57,7 +57,7 @@ func InitCmd() {
|
||||
AddCommands()
|
||||
|
||||
// the `OnInitialize` callbacks are called right before PreRun
|
||||
cobra.OnInitialize(initGlobalConfig, createLogger, task.NewRunner().Run)
|
||||
cobra.OnInitialize(initGlobalConfig, createLogger, task.RunTasks)
|
||||
}
|
||||
|
||||
// initConfig reads in config file and ENV variables if set.
|
||||
|
||||
@@ -19,7 +19,7 @@ const (
|
||||
// constants for installing db and fdw images
|
||||
const (
|
||||
DatabaseVersion = "12.1.0"
|
||||
FdwVersion = "0.0.27-rc.1"
|
||||
FdwVersion = "0.0.27-rc.2"
|
||||
|
||||
// The 12.1.0 image uses the older jar format 12.1.0-v2 is the same version of postgres,
|
||||
// just packaged as gzipped tar files (consistent with oras, faster to unzip). Once everyone is
|
||||
|
||||
@@ -15,6 +15,10 @@ type Runner struct {
|
||||
shouldRun bool
|
||||
}
|
||||
|
||||
func RunTasks() {
|
||||
NewRunner().Run()
|
||||
}
|
||||
|
||||
func NewRunner() *Runner {
|
||||
r := new(Runner)
|
||||
r.currentState, _ = statefile.LoadState()
|
||||
|
||||
Reference in New Issue
Block a user