Skip to content

Commit

Permalink
Merge pull request #7 from openhie/default-packages
Browse files Browse the repository at this point in the history
Set the default packages to the packages from config.yml
  • Loading branch information
MattyJ007 authored Jul 11, 2022
2 parents b7c8cb3 + 3dec20d commit 16785ff
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cli/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ func RunDeployCommand(startupCommands []string) error {

commandOptions := extractCommands(startupCommands)

if len(commandOptions.packages) == 0 {
for _, p := range cfg.Packages {
commandOptions.packages = append(commandOptions.packages, p.ID)
}
}

fmt.Println("Action:", commandOptions.deployCommand)
fmt.Println("Package IDs:", commandOptions.packages)
fmt.Println("Custom package paths:", commandOptions.customPackagePaths)
Expand Down

0 comments on commit 16785ff

Please sign in to comment.