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:
parent
5a74077d38
commit
ba447f942c
1 changed files with 15 additions and 1 deletions
|
@ -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)"'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue