otakup0pe / avakas

Tooling to assist with Semantic Version Manipulation and Representation
http://ohno.computer/post/144362045508/a-codified-opinion-on-semantic-versioning
MIT License
2 stars 5 forks source link

Support changing version in specified keys in data files #77

Open tyler-jachetta opened 3 years ago

tyler-jachetta commented 3 years ago

It would be helpful at times if the bump and set actions could take options to allow setting values in structured data files in addition to the other actions taken.

I'd propose `--set_(?:json|yaml)=:path.to.key

The use case is for the current ansible artifact generation.

tyler-jachetta commented 3 years ago

The human readable text around the version isn't a complete blocker, I can parse it out, but that feels brittle (and for set, won't work this way until #71 is resolved.

otakup0pe commented 3 years ago

@ultimatealf this is kinda what I was talking about earlier today in terms of auto editing associated/arbitrary yaml version pinning files.

ultimatealf commented 3 years ago

Seems like a natural fit that we have been considering (at least for a week according to github) :) That would make editing a data file with the new desired version (and sha) pretty trivial.

tyler-jachetta commented 3 years ago

~I didn't even think that it could deal with the painter stuff, yeah this simplifies that a lot~ wait no it doesn't really solve it the way I was thinking.