From ba447f942c4e702efba95c8631b0ecff6b152ca4 Mon Sep 17 00:00:00 2001 From: Douglas <32344964+NotTheDr01ds@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:08:53 -0500 Subject: [PATCH] Add and update new config files (#995) `bump-version.nu`: * Adds the new file location for config files * Adds the new config files --- make_release/bump-version.nu | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/make_release/bump-version.nu b/make_release/bump-version.nu index 1ea42c677..40d4e12fd 100755 --- a/make_release/bump-version.nu +++ b/make_release/bump-version.nu @@ -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)"'