1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-31 06:07:44 +00:00

Add and update new config files (#995)

`bump-version.nu`:

* Adds the new file location for config files
* Adds the new config files
This commit is contained in:
Douglas 2024-12-17 17:08:53 -05:00 committed by GitHub
parent 5a74077d38
commit ba447f942c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,21 @@ def main [
| save --force $file.name
}
"crates/nu-utils/src/sample_config/default_{config,env}.nu" | str expand | each {|file|
"crates/nu-utils/src/default_files/doc_{config,env}.nu" | str expand | each {|file|
log debug $"bumping ($file) from ($version) to ($new_version)"
open --raw $file
| str replace --all $'version = "($version)"' $'version = "($new_version)"'
| save --force $file
}
"crates/nu-utils/src/default_files/default_{config,env}.nu" | str expand | each {|file|
log debug $"bumping ($file) from ($version) to ($new_version)"
open --raw $file
| str replace --all $'version = "($version)"' $'version = "($new_version)"'
| save --force $file
}
"crates/nu-utils/src/default_files/scaffold_{config,env}.nu" | str expand | each {|file|
log debug $"bumping ($file) from ($version) to ($new_version)"
open --raw $file
| str replace --all $'version = "($version)"' $'version = "($new_version)"'