Skip to content
Discussion options

You must be logged in to vote

Sorry for the delayed response here.
I'm focusing on dasel v3 right now, and this is achievable with:

in.yaml

installation:
        methods:
          - method: gitea_deb_package
            os: [debian, ubuntu]
          - method: gitea_arch_package
            os: [arch]
          - method: gitea_release_binary
cat in.yaml |
  OSID=ubuntu dasel -i yaml -o json 'installation.methods.filter($this.os.contains($OSID) ?? true)'

Output

[
    {
        "method": "gitea_deb_package",
        "os": [
            "debian",
            "ubuntu"
        ]
    },
    {
        "method": "gitea_release_binary"
    }
]

V3 isn't officially released yet but you are able to install the development version.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by stecydube
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants