Commit Graph

8 Commits

Author SHA1 Message Date
68db80a05a
fix(yaml): set indentation to 2 spaces
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
The replaced module gopkg.in/yaml.v3 enforce an indentation of 4 spaces, when 0
spaces are defined. This is sad, because the old behavior can not be reproduced.

Instead of using 4 spaces for indentation, when `yamlEncoder.SetIndent(0)` is
called, we call `yamlEncoder.SetIndent(2)` to use 2 spaces for indentation,
because it is closer to 0 instead 4 spaces.
2025-02-25 16:35:44 +01:00
ab282e5173
feat: support depends_on
All checks were successful
continuous-integration/drone/push Build is passing
This PR supports the extended pattern of `depends_on`. If the short version of
`depends_on` is defined, it will be migrated to the extended version like the
example below:

```yaml
services:
  web:
    depends_on
    - database

services:
  web:
    depends_on:
      database:
        condition: service_started
```

All three types of merging strategies are supported.
2025-02-24 22:44:11 +01:00
9b469bd8c6
fix: rename firstWin to existingWin 2023-08-28 11:13:32 +02:00
4ad9da6d63
fix(cmd): add flag first-win 2023-08-28 10:57:36 +02:00
3bf9380001
fix(cmd): expect at least one argument
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-26 10:43:49 +02:00
f7c1664197
fix(cmd): adapt default output
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-26 10:37:56 +02:00
cadf25b089
fix(cmd): rename flag to last-win
All checks were successful
continuous-integration/drone/push Build is passing
2023-07-26 10:28:08 +02:00
3777c49ee9
Initial Commit
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2023-07-26 09:57:40 +02:00