mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
Add ExeExt template function
This commit is contained in:
@@ -309,6 +309,8 @@ Task also adds the following functions:
|
||||
path format to `/`.
|
||||
- `FromSlash`: Oposite of `ToSlash`. Does nothing on Unix, but on Windows
|
||||
converts a string from `\` path format to `/`.
|
||||
- `ExeExt`: Returns the right executable extension for the current OS
|
||||
(`".exe"` for Windows, `""` for others).
|
||||
|
||||
Example:
|
||||
|
||||
|
Reference in New Issue
Block a user