Skip to content

Commit

Permalink
Fix useDocker initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriiklymiuk committed Mar 28, 2024
1 parent c63ba8f commit 1ecbd68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra"
)

var APP_VERSION = "1.3.0"
var APP_VERSION = "1.3.1"

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Expand Down
7 changes: 5 additions & 2 deletions utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type CorgiCompose struct {
DatabaseServices []DatabaseService
Services []Service
Required []Required
// cannot combine from one commands struct, so have to repeated
// cannot combine from one common struct (yaml serialization), so have to repeat
Init []string `yaml:"init,omitempty"`
BeforeStart []string `yaml:"beforeStart,omitempty"`
Start []string `yaml:"start,omitempty"`
Expand All @@ -115,11 +115,13 @@ type CorgiComposeYaml struct {
DatabaseServices map[string]DatabaseService `yaml:"db_services"`
Services map[string]Service `yaml:"services"`
Required map[string]Required `yaml:"required"`
// cannot combine from one commands struct, so have to repeated
// cannot combine from one common struct (yaml serialization), so have to repeat
Init []string `yaml:"init,omitempty"`
BeforeStart []string `yaml:"beforeStart,omitempty"`
Start []string `yaml:"start,omitempty"`
AfterStart []string `yaml:"afterStart,omitempty"`

UseDocker bool `yaml:"useDocker,omitempty"`
}

var CorgiComposePath string
Expand Down Expand Up @@ -153,6 +155,7 @@ func GetCorgiServices(cobra *cobra.Command) (*CorgiCompose, error) {
corgi.BeforeStart = corgiYaml.BeforeStart
corgi.Start = corgiYaml.Start
corgi.AfterStart = corgiYaml.AfterStart
corgi.UseDocker = corgiYaml.UseDocker

dbServicesData := corgiYaml.DatabaseServices

Expand Down

0 comments on commit 1ecbd68

Please sign in to comment.