1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

feat: add alias q for template function shellQuote (#1603)

Resolves #1601
This commit is contained in:
Tim Vergenz
2024-04-23 21:47:40 -04:00
committed by GitHub
parent 72d9671fcf
commit 16070c7a24
4 changed files with 7 additions and 2 deletions

View File

@@ -1377,7 +1377,7 @@ Task also adds the following functions:
converts a string from `/` path format to `\`.
- `exeExt`: Returns the right executable extension for the current OS (`".exe"`
for Windows, `""` for others).
- `shellQuote`: Quotes a string to make it safe for use in shell scripts. Task
- `shellQuote` (aliased to `q`): Quotes a string to make it safe for use in shell scripts. Task
uses [this Go function](https://pkg.go.dev/mvdan.cc/sh/v3@v3.4.0/syntax#Quote)
for this. The Bash dialect is assumed.
- `splitArgs`: Splits a string as if it were a command's arguments. Task uses