Skip to content

Commit c417a40

Browse files
authored
Merge pull request #175 from ndeloof/all_profiles
add support for `*` as a hack to enable all profiles
2 parents 180d2d7 + e0ed5cd commit c417a40

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

types/project.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ func (s Services) GetProfiles() []string {
228228

229229
// ApplyProfiles disables service which don't match selected profiles
230230
func (p *Project) ApplyProfiles(profiles []string) {
231+
for _, p := range profiles {
232+
if p == "*" {
233+
return
234+
}
235+
}
231236
var enabled, disabled Services
232237
for _, service := range p.Services {
233238
if service.HasProfile(profiles) {

0 commit comments

Comments
 (0)