From eeae1c76b4cff7aa51dd06b003a2414e9a9ab4fd Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 18 Feb 2026 11:27:20 +0000 Subject: [PATCH] add Taskfile for bumping manifest version --- Taskfile.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..3172d00 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,15 @@ +version: '3' + +tasks: + bump: + desc: 'Bump the module version in the .psd1 file. Usage: "task bump -- show" or "task bump -- [patch|minor|major]".' + preconditions: + - sh: 'pwsh -c "if (Get-Command bump) { exit 0 } else { exit 1 }"' + msg: "The 'bump' command is not available. Please install the required tools to use this command." + cmds: + - | + {{if eq .CLI_ARGS "show"}} + pwsh -c "bump show -f lib/Q3Rcon.psd1 -p \"ModuleVersion\s*=\s'(\d+\.\d+\.\d+)'\"" + {{else}} + pwsh -c "bump {{.CLI_ARGS}} -w -f lib/Q3Rcon.psd1 -p \"ModuleVersion\s*=\s'(\d+\.\d+\.\d+)'\"" + {{end}}