uplift icon indicating copy to clipboard operation
uplift copied to clipboard

[Feature]: Enhance bumping of TOML files

Open ga-paul-t opened this issue 3 years ago • 2 comments

Describe your feature

Expand the existing file bumping support to include TOML files.

Your potential solution

Expand the existing config to support the inclusion of a TOML path(s) when defining a bump.

bumps:
  - 
    file: ./config.toml
    toml: 
       - path: 'version'
         semver: true

Libraries exist to convert TOML into JSON and back.

Any additional information?

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

ga-paul-t avatar May 23 '22 04:05 ga-paul-t

https://github.com/TomWright/dasel

Has the ability to modify any values within YAML, TOML, JSON, XML and CSV files

ga-paul-t avatar May 23 '22 04:05 ga-paul-t

Proposing a new simplified strategy for bumping files:

bumps:
  - file: Chart.yaml
    regex:
    json: #deprecated
    paths:
      # Raw string
      - ".path.path.path"
      
      # Complex type
      - path: ".path.path.path"
        semver: yes|no|true|false

ga-paul-t avatar May 26 '22 05:05 ga-paul-t