You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have several large overlay files that I'm applying one by one and I'd like to have an option to force update the input OpenAPI file in-place. This will help simplify my automation scripts by eliminating the need to create and then delete multiple temporary files with intermediate results.
--out=INPUTFILE works but triggers an interactive confirmation prompt which I think isn't compatible with CI/CD.
> INPUTFILE does not work because it blanks the file before bump can read it, resulting in an error.
| sponge INPUTFILE is a possible workaround for macOS/*nix users, but we also have Windows users who can't use moreutils so it's not an option.
UPD: I found a way to silently overwrite the input spec on macOS/*nix:
echo y | bump overlay myspec.yaml overlay.yaml --out=myspec.yaml
but it would still be great to have a built-in option for cross-platform use.
The text was updated successfully, but these errors were encountered:
hkosova
changed the title
bump overlay: support overwriting the input file
bump overlay: support overwriting the input OpenAPI file
Nov 12, 2024
I have several large overlay files that I'm applying one by one and I'd like to have an option to force update the input OpenAPI file in-place. This will help simplify my automation scripts by eliminating the need to create and then delete multiple temporary files with intermediate results.
--out=INPUTFILE
works but triggers an interactive confirmation prompt which I think isn't compatible with CI/CD.> INPUTFILE
does not work because it blanks the file beforebump
can read it, resulting in an error.| sponge INPUTFILE
is a possible workaround for macOS/*nix users, but we also have Windows users who can't usemoreutils
so it's not an option.UPD: I found a way to silently overwrite the input spec on macOS/*nix:
but it would still be great to have a built-in option for cross-platform use.
The text was updated successfully, but these errors were encountered: