mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-10-26 13:55:28 +03:00
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:
parent
b95f260bb4
commit
dfdd5692d7
@ -36,7 +36,10 @@ def main [
|
|||||||
| save --force $file
|
| 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)"
|
log debug $"bumping ($file) from ($version) to ($new_version)"
|
||||||
open --raw $file
|
open --raw $file
|
||||||
| str replace --all $'NUSHELL_VERSION = "($version)"' $'NUSHELL_VERSION = "($new_version)"'
|
| str replace --all $'NUSHELL_VERSION = "($version)"' $'NUSHELL_VERSION = "($new_version)"'
|
||||||
|
Loading…
Reference in New Issue
Block a user