1
0
mirror of https://github.com/go-task/task.git synced 2024-12-04 10:24:45 +02:00

chore: add changelog and documentation for #1452

This commit is contained in:
Andrey Nering 2024-01-10 22:12:19 -03:00
parent 00896a1318
commit 33f90a8c16
2 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,9 @@
@pd93).
- Small change on the API when using as a library: `call.Direct` became
`call.Indirect` (#1459).
- Added new template function: `spew`, which can be used to print variables for
debugging purposes (#1452).
## v3.33.1 - 2023-12-21

View File

@ -1286,6 +1286,9 @@ Task also adds the following functions:
for this. The Bash dialect is assumed.
- `splitArgs`: Splits a string as if it were a command's arguments. Task uses
[this Go function](https://pkg.go.dev/mvdan.cc/sh/v3@v3.4.0/shell#Fields)
- `spew`: Returns the Go representation of a specific variable. Useful for
debugging. Uses the [davecgh/go-spew](https://github.com/davecgh/go-spew)
package.
Example: