Add nu_plugin_nu_example to bump-version.nu (#822)

What it says on the tin. This just updates the `bump-version.nu` script
to also edit the version in
the new nu_plugin_nu_example plugin, the same way it does for python
This commit is contained in:
Devyn Cairns 2024-04-19 13:43:09 -07:00 committed by GitHub
parent b95f260bb4
commit dfdd5692d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -36,7 +36,10 @@ def main [
| save --force $file
}
["crates/nu_plugin_python/nu_plugin_python_example.py"] | each {|file|
[
"crates/nu_plugin_python/nu_plugin_python_example.py"
"crates/nu_plugin_nu_example/nu_plugin_nu_example.nu"
] | each {|file|
log debug $"bumping ($file) from ($version) to ($new_version)"
open --raw $file
| str replace --all $'NUSHELL_VERSION = "($version)"' $'NUSHELL_VERSION = "($new_version)"'