Skip to content

Commit

Permalink
Add and update new config files (#995)
Browse files Browse the repository at this point in the history
`bump-version.nu`:

* Adds the new file location for config files
* Adds the new config files
  • Loading branch information
NotTheDr01ds authored Dec 17, 2024
1 parent 5a74077 commit ba447f9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion make_release/bump-version.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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)"'
Expand Down

0 comments on commit ba447f9

Please sign in to comment.